public class NoOpBinary extends Object implements IgniteBinary
Constructor and Description |
---|
NoOpBinary() |
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.
|
<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 int typeId(String typeName)
typeId
in interface IgniteBinary
typeName
- Type name.public <T> T toBinary(@Nullable Object obj) throws BinaryObjectException
BinaryObject
.toBinary
in interface IgniteBinary
obj
- Object to convert.BinaryObjectException
- In case of error.public BinaryObjectBuilder builder(String typeName) throws BinaryObjectException
builder
in interface IgniteBinary
typeName
- Type name.BinaryObjectException
public BinaryObjectBuilder builder(BinaryObject binaryObj) throws BinaryObjectException
builder
in interface IgniteBinary
binaryObj
- Binary object to initialize builder.BinaryObjectException
public BinaryType type(Class<?> cls) throws BinaryObjectException
type
in interface IgniteBinary
cls
- Class.BinaryObjectException
- In case of error.public BinaryType type(String typeName) throws BinaryObjectException
type
in interface IgniteBinary
typeName
- Type name.BinaryObjectException
- In case of error.public BinaryType type(int typeId) throws BinaryObjectException
type
in interface IgniteBinary
typeId
- Type ID.BinaryObjectException
- In case of error.public Collection<BinaryType> types() throws BinaryObjectException
types
in interface IgniteBinary
BinaryObjectException
- In case of error.public BinaryObject buildEnum(String typeName, int ord)
buildEnum
in interface IgniteBinary
typeName
- Type name.ord
- Ordinal.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017