...
Request | |
CacheConfiguration | Cache config (see format above) |
Empty response.
OP_QUERY_SQL = 36
Performs SQL query.
...
OP_QUERY_SQL_CURSOR_GET_PAGE = 37
Retrieves next SQL query cursor page by cursor id from OP_QUERY_SQL.
Request | |
long | Cursor id |
Response | |
long | Cursor id |
int | Row count |
(Object + Object) * count | Cache entries, key + value |
bool | Indicates whether more results are available to be fetched with OP_QUERY_SQL_CURSOR_GET_PAGE. When true, query cursor is closed automatically. |
...
OP_QUERY_SQL_FIELDS = 38OP_QUERY_SQL_FIELDS_CURSOR_GET_PAGE = 39
Performs SQL fields query
Request | |
int | Cache ID: Java-style hash code of the cache name |
string | Default schema for the query, can be null |
int | Query cursor page size |
int | Max rows |
string | SQL |
int | Argument count |
BinaryObject * count | Arguments |
byte | Statement type, ANY = 0, SELECT = 1, UPDATE = 2 |
bool | Distributed joins |
bool | Local |
bool | Replicated Only |
bool | Enforce Join Order |
bool | Colocated |
bool | Lazy |
long | Timeout (milliseconds) |
bool | Include field names |
Response | |
long | Cursor id. Can be closed with OP_RESOURCE_CLOSE. |
int | Field (column) count |
Optionally, when IncludeFieldNames is true in request string * count | Column names |
int | First page row count |
BinaryObject * columnCount | Column (field) values |
bool | Indicates whether more results are available to be retrieved with OP_QUERY_SQL_FIELDS_CURSOR_GET_PAGE |
OP_QUERY_SQL_FIELDS_CURSOR_GET_PAGE = 39
Request | |
long | Cursor id |
Response | |
int | Row count |
BinaryObject * columnCount | Column values |
bool | Indicates whether more results are available to be retrieved with OP_QUERY_SQL_FIELDS_CURSOR_GET_PAGE |
OP_GET_BINARY_TYPE_NAME = 2
OP_GET_BINARY_TYPE = 3
OP_REGISTER_BINARY_TYPE_NAME = 5
OP_PUT_BINARY_TYPE = 6
OP_QUERY_SCAN = 7
OP_QUERY_SCAN_CURSOR_GET_PAGE = 8
...