public class BinaryTypeImpl extends Object implements BinaryType
| Constructor and Description |
|---|
BinaryTypeImpl(BinaryContext ctx,
BinaryMetadata meta)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
affinityKeyFieldName()
Binary objects can optionally specify custom key-affinity mapping in the
configuration.
|
BinaryContext |
context() |
BinaryFieldImpl |
field(String fieldName)
Get
BinaryField for the given field name. |
Collection<String> |
fieldNames()
Gets collection of all field names for this binary type.
|
String |
fieldTypeName(String fieldName)
Gets name of the field type for a given field.
|
boolean |
isEnum()
Check whether type represents enum or not.
|
BinaryMetadata |
metadata() |
String |
toString() |
int |
typeId()
Gets binary type ID.
|
String |
typeName()
Gets binary type name.
|
public BinaryTypeImpl(BinaryContext ctx, BinaryMetadata meta)
ctx - Binary context.meta - Type metadata.public String typeName()
typeName in interface BinaryTypepublic int typeId()
typeId in interface BinaryTypepublic Collection<String> fieldNames()
fieldNames in interface BinaryTypepublic String fieldTypeName(String fieldName)
fieldTypeName in interface BinaryTypefieldName - Field name.public BinaryFieldImpl field(String fieldName)
BinaryField for the given field name. Later this field can be used for fast field's value
retrieval from concrete BinaryObject.field in interface BinaryTypefieldName - Field name.public String affinityKeyFieldName()
affinityKeyFieldName in interface BinaryTypepublic boolean isEnum()
isEnum in interface BinaryTypeTrue if type is enum.public BinaryContext context()
public BinaryMetadata metadata()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017