Thrift module: Hql
Data structures
Struct: HqlResult
| Key | Field | Type | Description | Requiredness | Default value |
| 1 | results | list<string> | | optional | |
| 2 | cells | list<Client.Cell> | | optional | |
| 3 | scanner | i64 | | optional | |
| 4 | mutator | i64 | | optional | |
Result type of HQL queries
- results
- String results from metadata queries
- cells
- Resulting table cells of for buffered queries
- scanner
- Resulting scanner ID for unbuffered queries
- mutator
- Resulting mutator ID for unflushed modifying queries
Struct: HqlResult2
| Key | Field | Type | Description | Requiredness | Default value |
| 1 | results | list<string> | | optional | |
| 2 | cells | list<Client.CellAsArray> | | optional | |
| 3 | scanner | i64 | | optional | |
| 4 | mutator | i64 | | optional | |
Same as HqlResult except with cell as array
Services
Service: HqlService
HQL service is a superset of Client service
It adds capability to execute HQL queries to the service
Function: HqlService.hql_exec
HqlResult hql_exec(i64 ns,
string command,
bool noflush = 0,
bool unbuffered = 0)
throws Client.ClientException
Execute an HQL command
@param ns - Namespace id
@param command - HQL command
@param noflush - Do not auto commit any modifications (return a mutator)
@param unbuffered - return a scanner instead of buffered results
Function: HqlService.hql_query
HqlResult hql_query(i64 ns,
string command)
throws Client.ClientException
Convenience method for executing an buffered and flushed query
because thrift doesn't (and probably won't) support default argument values
@param ns - Namespace
@param command - HQL command