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(Int32, String)
Gets field ID for the given field of the given class.
Declaration
int GetFieldId(int typeId, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | typeId | Type ID. |
System.String | fieldName | Field name. |
Returns
Type | Description |
---|---|
System.Int32 | 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 |
---|---|---|
System.String | typeName | Full type name. |
Returns
Type | Description |
---|---|
System.Int32 | ID of the class or 0 in case hash code is to be used. |