public class BinaryMetadata extends Object implements Externalizable
| Constructor and Description |
|---|
BinaryMetadata()
For
Externalizable. |
BinaryMetadata(int typeId,
String typeName,
Map<String,Integer> fields,
String affKeyFieldName,
Collection<PortableSchema> schemas,
boolean isEnum)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
affinityKeyFieldName() |
Collection<String> |
fields() |
Map<String,Integer> |
fieldsMap() |
String |
fieldTypeName(String fieldName) |
boolean |
isEnum() |
void |
readExternal(ObjectInput in) |
Collection<PortableSchema> |
schemas() |
String |
toString() |
int |
typeId() |
String |
typeName() |
BinaryTypeImpl |
wrap(PortableContext ctx)
Wrap metadata into binary type.
|
void |
writeExternal(ObjectOutput out) |
public BinaryMetadata()
Externalizable.public BinaryMetadata(int typeId,
String typeName,
@Nullable
Map<String,Integer> fields,
@Nullable
String affKeyFieldName,
@Nullable
Collection<PortableSchema> schemas,
boolean isEnum)
typeId - Type ID.typeName - Type name.fields - Fields map.affKeyFieldName - Affinity key field name.schemas - Schemas.isEnum - Enum flag.public int typeId()
public String typeName()
public Collection<String> fields()
@Nullable public String fieldTypeName(String fieldName)
fieldName - Field name.@Nullable public String affinityKeyFieldName()
public Collection<PortableSchema> schemas()
public boolean isEnum()
True if this is enum type.public BinaryTypeImpl wrap(PortableContext ctx)
ctx - Portable context.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015