Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OP_CACHE_CREATE_WITH_CONFIGURATION = 34 

Creates cache with provided configuration. Throws an exception if the name is already in use. 

Request
CacheConfigurationCache 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
CacheConfigurationCache config (see format above)

 Empty response.

 



 

OP_QUERY_SQL = 36 

Performs SQL query. 

Request
intCache ID: Java-style hash code of the cache name
stringQuery entity type name
stringSQL
intArgument count
BinaryObject * countArguments
boolDistributed joins
boolLocal query
boolReplicated only
intCursor page size
longTimeout (milliseconds)

Response includes first page of results. If entire result set fits into the response, query cursor is closed automatically.

Response
longCursor id. Can be closed with OP_RESOURCE_CLOSE.
intRow count for the first page
(Object + Object) * countCache 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
longCursor id

 

 

Response
longCursor id
intRow count
(Object + Object) * countCache 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
longResource 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



Message Exchange Example

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.

...