Versions Compared

Key

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

...

Gets the platform-specific full binary type name by id. For example, .NET and Java can map to the same type Foo, but classes will be Apache.Ignite.Foo in .NET and org.apache.ignite.Foo in Java.

Names are registered with OP_REGISTER_BINARY_TYPE_NAME.

Request
bytePlatform id, JAVA = 0, DOTNET = 1
intType id

...


OP_REGISTER_BINARY_TYPE_NAME = 5OP_PUT_BINARY_TYPE = 6
OP_QUERY_SCAN = 7

Registers the platform-specific full binary type name by id. For example, .NET and Java can map to the same type Foo, but classes will be Apache.Ignite.Foo in .NET and org.apache.ignite.Foo in Java.

Request
bytePlatform id, JAVA = 0, DOTNET = 1
intType id
stringType name

Empty response.



OP_PUT_BINARY_TYPE = 6

Registers binary type information in cluster.

Request
intType id
stringType name
stringAffinity key field name
intBinaryField count
BinaryField * count
BinaryField
stringField name
intType id
intField id
boolIs enum
int (if isEnum)Enum field count
(string + int) * count (if isEnum)Enum values
intSchema count
(int + int[]) * countBinary schemas, set of (schemaId + fieldIds) pairs

 Empty response.

 


OP_QUERY_SCAN = 7

Performs scan query.

Request
intCache ID: Java-style hash code of the cache name
BinaryObjectFilter object
byte (if filter object is not null)Filter platform, JAVA = 1, DOTNET = 2, CPP = 3
intCursor page size
intPartition to query (negative to query entire cache)
boolLocal flag
Response
longCursor id

 


OP_QUERY_SCAN_CURSOR_GET_PAGE = 8

Retrieves next SQL query cursor page by cursor id from OP_QUERY_SCAN. 

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_SCAN_CURSOR_GET_PAGE.

When true, query cursor is closed automatically.

  = 8



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.

...