...
OP_CACHE_CREATE_WITH_CONFIGURATION = 34
Creates cache with provided configuration. Throws an exception if the name is already in use.
Request | |
CacheConfiguration | Cache config (see format above) |
...
OP_CACHE_GET_OR_CREATE_WITH_CONFIGURATION = 35
Creates cache with provided configuration. Does nothing if the name is already in use.
Request | |
CacheConfiguration | Cache config (see format above) |
Empty response.
OP_QUERY_SQL = 36
Performs SQL query.
Request | |
int | Cache ID: Java-style hash code of the cache name |
string | Query entity type name |
string | SQL |
int | Argument count |
BinaryObject * count | Arguments |
bool | Distributed joins |
bool | Local query |
bool | Replicated only |
int | Cursor page size |
long | Timeout (milliseconds) |
Response includes first page of results. If entire result set fits into the response, query cursor is closed automatically.
Response | |
long | Cursor id. Can be closed with OP_RESOURCE_CLOSE. |
int | Row count for the first page |
(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_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_RESOURCE_CLOSE = 9
Closes a resource, such as query cursor.
Request | |
long | Resource id |
Empty response.
OP_QUERY_SQL_FIELDS = 38
OP_QUERY_SQL_FIELDS_CURSOR_GET_PAGE = 39
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 = 8TODO: Other operations
As an example let's see how to connect to Ignite instance on a local machine and retrieve an int value for a given int key, in pseudocode.
...