public interface CacheObjectBinaryProcessor extends IgniteCacheObjectProcessor
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Method and Description |
|---|---|
void |
addMeta(int typeId,
BinaryType newMeta) |
IgniteBinary |
binary() |
BinaryObject |
buildEnum(String typeName,
int ord) |
BinaryObject |
buildEnum(String typeName,
String name) |
BinaryObjectBuilder |
builder(BinaryObject binaryObj)
Creates builder initialized by existing binary object.
|
BinaryObjectBuilder |
builder(String clsName) |
Object |
marshalToBinary(Object obj) |
Collection<BinaryType> |
metadata() |
Map<Integer,BinaryType> |
metadata(Collection<Integer> typeIds) |
BinaryType |
metadata(int typeId) |
BinaryType |
metadata(int typeId,
int schemaId) |
BinaryType |
registerEnum(String typeName,
Map<String,Integer> vals)
Register enum type
|
void |
updateMetadata(int typeId,
String typeName,
String affKeyFieldName,
Map<String,BinaryFieldMetadata> fieldTypeIds,
boolean isEnum,
Map<String,Integer> enumMap) |
contextForCache, field, hasField, immutable, isBinaryEnabled, isBinaryObject, marshal, onContinuousProcessorStarted, prepareForCache, toCacheKeyObject, toCacheObject, toCacheObject, toCacheObject, toCacheObject, toKeyCacheObject, toKeyCacheObject, typeId, typeId, unmarshal, unwrapTemporarycollectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, stop, validateNodeBinaryObjectBuilder builder(String clsName)
clsName - Class name.BinaryObjectBuilder builder(BinaryObject binaryObj)
binaryObj - Binary object to edit.void addMeta(int typeId,
BinaryType newMeta)
throws IgniteException
typeId - Type ID.newMeta - New meta data.IgniteException - In case of error.void updateMetadata(int typeId,
String typeName,
@Nullable
String affKeyFieldName,
Map<String,BinaryFieldMetadata> fieldTypeIds,
boolean isEnum,
@Nullable
Map<String,Integer> enumMap)
throws IgniteException
typeId - Type ID.typeName - Type name.affKeyFieldName - Affinity key field name.fieldTypeIds - Fields map.isEnum - Enum flag.enumMap - Enum name to ordinal mapping.IgniteException - In case of error.@Nullable BinaryType metadata(int typeId) throws IgniteException
typeId - Type ID.IgniteException - In case of error.@Nullable BinaryType metadata(int typeId, int schemaId) throws IgniteException
typeId - Type ID.schemaId - Schema ID.IgniteException - In case of error.Map<Integer,BinaryType> metadata(Collection<Integer> typeIds) throws IgniteException
typeIds - Type ID.IgniteException - In case of error.Collection<BinaryType> metadata() throws IgniteException
IgniteException - In case of error.BinaryObject buildEnum(String typeName, int ord) throws IgniteException
typeName - Type name.ord - ordinal.IgniteException - If failed.BinaryObject buildEnum(String typeName, String name) throws IgniteException
typeName - Type name.name - Name.IgniteException - If failed.BinaryType registerEnum(String typeName, Map<String,Integer> vals) throws IgniteException
typeName - Type name.vals - Mapping of enum constant names to ordinals.IgniteExceptionIgniteBinary binary() throws IgniteException
binary in interface IgniteCacheObjectProcessorIgniteException - If failed.Object marshalToBinary(Object obj) throws IgniteException
obj - Original object.IgniteException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017