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 BinaryType
public int typeId()
typeId
in interface BinaryType
public Collection<String> fieldNames()
fieldNames
in interface BinaryType
public String fieldTypeName(String fieldName)
fieldTypeName
in interface BinaryType
fieldName
- 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 BinaryType
fieldName
- Field name.public String affinityKeyFieldName()
affinityKeyFieldName
in interface BinaryType
public boolean isEnum()
isEnum
in interface BinaryType
True
if type is enum.public BinaryContext context()
public BinaryMetadata metadata()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017