Class OBinarySerializerFactory
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.binary.OBinarySerializerFactory
This class is responsible for obtaining OBinarySerializer realization, by it's id of type of
object that should be serialized.
- Author:
- Evgeniy Degtiarenko (gmandnepr-at-gmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSize of the type identifier block size -
Method Summary
Modifier and TypeMethodDescriptionstatic OBinarySerializerFactorycreate(int binaryFormatVersion) static OBinarySerializerFactorygetObjectSerializer(byte identifier) Obtain OBinarySerializer instance by it's id.<T> OBinarySerializer<T>getObjectSerializer(OType type) Obtain OBinarySerializer realization for the OTypevoidregisterSerializer(byte iId, Class<? extends OBinarySerializer> iClass) voidregisterSerializer(OBinarySerializer<?> iInstance, OType iType)
-
Field Details
-
TYPE_IDENTIFIER_SIZE
public static final int TYPE_IDENTIFIER_SIZESize of the type identifier block size- See Also:
-
-
Method Details
-
create
-
getInstance
-
registerSerializer
-
registerSerializer
-
getObjectSerializer
Obtain OBinarySerializer instance by it's id.- Parameters:
identifier- is serializes identifier.- Returns:
- OBinarySerializer instance.
-
getObjectSerializer
Obtain OBinarySerializer realization for the OType- Parameters:
type- is the OType to obtain serializer algorithm for- Returns:
- OBinarySerializer instance
-