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 using value.
|
BinaryObject |
buildEnum(String typeName,
String name)
Create enum object using name.
|
BinaryObjectBuilder |
builder(BinaryObject binaryObj)
Creates binary builder initialized by existing binary object.
|
BinaryObjectBuilder |
builder(String typeName)
Creates new binary builder.
|
BinaryType |
registerEnum(String typeName,
Map<String,Integer> vals)
Register enum type.
|
<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 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) throws BinaryObjectException
builder in interface IgniteBinarytypeName - Type name.BinaryObjectExceptionpublic BinaryObjectBuilder builder(BinaryObject binaryObj) throws BinaryObjectException
builder in interface IgniteBinarybinaryObj - Binary object to initialize builder.BinaryObjectExceptionpublic BinaryType type(Class<?> cls) throws BinaryObjectException
type in interface IgniteBinarycls - Class.BinaryObjectException - In case of error.public BinaryType type(String typeName) throws BinaryObjectException
type in interface IgniteBinarytypeName - Type name.BinaryObjectException - In case of error.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 BinaryObject buildEnum(String typeName, String name)
buildEnum in interface IgniteBinarytypeName - Type name.name - Name.public BinaryType registerEnum(String typeName, Map<String,Integer> vals)
registerEnum in interface IgniteBinarytypeName - Type name.vals - Mapping of enum constant names to ordinals.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018