public interface BinaryIdMapper
BinaryIdMapper
allows to override the automatically
generated hash code IDs for the type and field names.
Binary ID mapper can be configured for all binary objects via
BinaryConfiguration.getIdMapper()
method,
or for a specific binary type via BinaryTypeConfiguration.getIdMapper()
method.
BinaryNameMapper
Modifier and Type | Method and Description |
---|---|
int |
fieldId(int typeId,
String fieldName)
Gets ID for provided field name.
|
int |
typeId(String typeName)
Gets type ID for provided type name.
|
int typeId(String typeName)
If 0
is returned, hash code of class simple name will be used.
typeName
- Type name. Type name is a result of BinaryNameMapper.typeName(String)
call for an
initial class or type name.BinaryNameMapper.typeName(String)
int fieldId(int typeId, String fieldName)
If 0
is returned, hash code of field name will be used.
typeId
- Type ID.fieldName
- Field name. Filed anme is a result of BinaryNameMapper.fieldName(String)
call for an
initial field name.BinaryNameMapper.fieldName(String)
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024