Interface IBinaryIdMapper
Maps class name and class field names to integer identifiers.
Namespace: Apache.Ignite.Core.Binary
Assembly: Apache.Ignite.Core.dll
Syntax
public interface IBinaryIdMapper
Methods
GetFieldId(int, string)
Gets field ID for the given field of the given class.
Declaration
int GetFieldId(int typeId, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| int | typeId | Type ID. |
| string | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| int | ID of the field or null in case hash code is to be used. |
GetTypeId(string)
Gets type ID for the given type.
Declaration
int GetTypeId(string typeName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeName | Full type name. |
Returns
| Type | Description |
|---|---|
| int | ID of the class or 0 in case hash code is to be used. |