public class OBinarySerializerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_IDENTIFIER_SIZE
Size of the type identifier block size
|
Modifier and Type | Method and Description |
---|---|
static OBinarySerializerFactory |
create(int binaryFormatVersion) |
static OBinarySerializerFactory |
getInstance() |
OBinarySerializer<?> |
getObjectSerializer(byte identifier)
Obtain OBinarySerializer instance by it's id.
|
<T> OBinarySerializer<T> |
getObjectSerializer(OType type)
Obtain OBinarySerializer realization for the OType
|
void |
registerSerializer(byte iId,
Class<? extends OBinarySerializer> iClass) |
void |
registerSerializer(OBinarySerializer<?> iInstance,
OType iType) |
public static final int TYPE_IDENTIFIER_SIZE
public static OBinarySerializerFactory create(int binaryFormatVersion)
public static OBinarySerializerFactory getInstance()
public void registerSerializer(OBinarySerializer<?> iInstance, OType iType)
public void registerSerializer(byte iId, Class<? extends OBinarySerializer> iClass)
public OBinarySerializer<?> getObjectSerializer(byte identifier)
identifier
- is serializes identifier.public <T> OBinarySerializer<T> getObjectSerializer(OType type)
type
- is the OType to obtain serializer algorithm forCopyright © 2009–2020 OrientDB. All rights reserved.