public class IgniteBinaryImpl extends Object implements IgniteBinary
IgniteBinary implementation.| Constructor and Description |
|---|
IgniteBinaryImpl(GridKernalContext ctx,
CacheObjectBinaryProcessor proc) |
| Modifier and Type | Method and Description |
|---|---|
BinaryObject |
buildEnum(String typeName,
int ord)
Create enum object.
|
BinaryObjectBuilder |
builder(BinaryObject binaryObj)
Creates binary builder initialized by existing binary object.
|
BinaryObjectBuilder |
builder(String typeName)
Creates new binary builder.
|
IgniteCacheObjectProcessor |
processor() |
<T> T |
toBinary(Object obj)
Converts provided object to instance of
BinaryObject. |
BinaryType |
type(Class<?> cls)
Gets metadata for provided class.
|
BinaryType |
type(int typeId)
Gets metadata for provided type ID.
|
BinaryType |
type(String typeName)
Gets metadata for provided class name.
|
int |
typeId(String typeName)
Gets type ID for given type name.
|
Collection<BinaryType> |
types()
Gets metadata for all known types.
|
public IgniteBinaryImpl(GridKernalContext ctx, CacheObjectBinaryProcessor proc)
ctx - Context.public int typeId(String typeName)
typeId in interface IgniteBinarytypeName - Type name.public <T> T toBinary(@Nullable
Object obj)
throws BinaryObjectException
BinaryObject.toBinary in interface IgniteBinaryobj - Object to convert.BinaryObjectException - In case of error.public BinaryObjectBuilder builder(String typeName)
builder in interface IgniteBinarytypeName - Type name.public BinaryObjectBuilder builder(BinaryObject binaryObj)
builder in interface IgniteBinarybinaryObj - Binary object to initialize builder.@Nullable public BinaryType type(Class<?> cls) throws BinaryObjectException
type in interface IgniteBinarycls - Class.BinaryObjectException - In case of error.@Nullable public BinaryType type(String typeName) throws BinaryObjectException
type in interface IgniteBinarytypeName - Type name.BinaryObjectException - In case of error.@Nullable public BinaryType type(int typeId) throws BinaryObjectException
type in interface IgniteBinarytypeId - Type ID.BinaryObjectException - In case of error.public Collection<BinaryType> types() throws BinaryObjectException
types in interface IgniteBinaryBinaryObjectException - In case of error.public BinaryObject buildEnum(String typeName, int ord)
buildEnum in interface IgniteBinarytypeName - Type name.ord - Ordinal.public IgniteCacheObjectProcessor processor()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016