public class PortableMetaDataImpl extends Object implements PortableMetadata, PortableMarshalAware, Externalizable
| Constructor and Description |
|---|
PortableMetaDataImpl()
For
Externalizable. |
PortableMetaDataImpl(String typeName,
Map<String,String> fields,
String affKeyFieldName) |
| Modifier and Type | Method and Description |
|---|---|
String |
affinityKeyFieldName()
Portable objects can optionally specify custom key-affinity mapping in the
configuration.
|
Collection<String> |
fields()
Gets collection of all field names for this portable type.
|
Map<String,String> |
fields0() |
Map<String,String> |
fieldsMeta() |
String |
fieldTypeName(String fieldName)
Gets name of the field type for a given field.
|
void |
readExternal(ObjectInput in) |
void |
readPortable(PortableReader reader)
Reads fields from provided reader.
|
String |
toString() |
String |
typeName()
Gets portable type name.
|
void |
writeExternal(ObjectOutput out) |
void |
writePortable(PortableWriter writer)
Writes fields to provided writer.
|
public PortableMetaDataImpl()
Externalizable.public String typeName()
typeName in interface PortableMetadatapublic Collection<String> fields()
fields in interface PortableMetadata@Nullable public String fieldTypeName(String fieldName)
fieldTypeName in interface PortableMetadatafieldName - Field name.@Nullable public String affinityKeyFieldName()
affinityKeyFieldName in interface PortableMetadatapublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writePortable(PortableWriter writer) throws PortableException
writePortable in interface PortableMarshalAwarewriter - Portable object writer.PortableException - In case of error.public void readPortable(PortableReader reader) throws PortableException
readPortable in interface PortableMarshalAwarereader - Portable object reader.PortableException - In case of error.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015