...
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 | |
byte | Platform id, JAVA = 0, DOTNET = 1 |
int | Type 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 | |
byte | Platform id, JAVA = 0, DOTNET = 1 |
int | Type id |
string | Type name |
Empty response.
OP_PUT_BINARY_TYPE = 6
Registers binary type information in cluster.
Request | |||||||||
int | Type id | ||||||||
string | Type name | ||||||||
string | Affinity key field name | ||||||||
int | BinaryField count | ||||||||
BinaryField * count |
| ||||||||
bool | Is enum | ||||||||
int (if isEnum) | Enum field count | ||||||||
(string + int) * count (if isEnum) | Enum values | ||||||||
int | Schema count | ||||||||
(int + int[]) * count | Binary schemas, set of (schemaId + fieldIds) pairs |
Empty response.
OP_QUERY_SCAN = 7
Performs scan query.
Request | |
int | Cache ID: Java-style hash code of the cache name |
BinaryObject | Filter object |
byte (if filter object is not null) | Filter platform, JAVA = 1, DOTNET = 2, CPP = 3 |
int | Cursor page size |
int | Partition to query (negative to query entire cache) |
bool | Local flag |
Response | |
long | Cursor id |
OP_QUERY_SCAN_CURSOR_GET_PAGE = 8
Retrieves next SQL query cursor page by cursor id from OP_QUERY_SCAN.
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_SCAN_CURSOR_GET_PAGE. When true, query cursor is closed automatically. |
= 8
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.
...