Class ORecordSerializerBinaryV1
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV1
- All Implemented Interfaces:
ODocumentSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(ODocument document, BytesContainer bytes) voiddeserializeDebug(BytesContainer bytes, ODatabaseDocumentInternal db, ORecordSerializationDebug debugInfo, OImmutableSchema schema) protected OResultBinarydeserializeEmbeddedAsBytes(BytesContainer bytes, int valueLength, OImmutableSchema schema) protected ObjectdeserializeEmbeddedAsDocument(BytesContainer bytes, ORecordElement owner) protected ListdeserializeEmbeddedMapAsMapOfBytes(BytesContainer bytes, OImmutableSchema schema) deserializeField(BytesContainer bytes, OClass iClass, String iFieldName, boolean embedded, OImmutableSchema schema, OPropertyEncryption encryption) <RET> RETdeserializeFieldTyped(BytesContainer bytes, String iFieldName, boolean isEmbedded, OImmutableSchema schema, OPropertyEncryption encryption) protected <RET> RETdeserializeFieldTypedLoopAndReturn(BytesContainer bytes, String iFieldName, OImmutableSchema schema, OPropertyEncryption encryption) voiddeserializePartial(ODocument document, BytesContainer bytes, String[] iFields) deserializeValue(BytesContainer bytes, OType type, ORecordElement owner) protected ObjectdeserializeValue(BytesContainer bytes, OType type, ORecordElement owner, boolean embeddedAsDocument, int valueLengthInBytes, boolean justRunThrough, OImmutableSchema schema) voiddeserializeWithClassName(ODocument document, BytesContainer bytes) String[]getFieldNames(ODocument reference, BytesContainer bytes, boolean embedded) Returns the array of field names with no values.protected OTypegetFieldType(ODocumentEntry entry) protected List<HelperClasses.MapRecordInfo> getPositionsFromEmbeddedMap(BytesContainer bytes, OImmutableSchema schema) booleanprotected Collection<?> readEmbeddedList(BytesContainer bytes, ORecordElement owner) protected ObjectreadEmbeddedMap(BytesContainer bytes, ORecordElement owner) protected Collection<?> readEmbeddedSet(BytesContainer bytes, ORecordElement owner) protected ORidBagreadRidbag(BytesContainer bytes) voidserialize(ODocument document, BytesContainer bytes) intserializeValue(BytesContainer bytes, Object value, OType type, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) voidserializeWithClassName(ODocument document, BytesContainer bytes) protected voidskipClassName(BytesContainer bytes) protected intwriteEmbeddedCollection(BytesContainer bytes, Collection<?> value, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) protected intwriteEmbeddedMap(BytesContainer bytes, Map<Object, Object> map, OImmutableSchema schema, OPropertyEncryption encryption) protected intwriteEmptyString(BytesContainer bytes) protected intwriteRidBag(BytesContainer bytes, ORidBag ridbag)
-
Constructor Details
-
ORecordSerializerBinaryV1
public ORecordSerializerBinaryV1()
-
-
Method Details
-
deserializePartial
- Specified by:
deserializePartialin interfaceODocumentSerializer
-
deserializeField
public OBinaryField deserializeField(BytesContainer bytes, OClass iClass, String iFieldName, boolean embedded, OImmutableSchema schema, OPropertyEncryption encryption) - Specified by:
deserializeFieldin interfaceODocumentSerializer
-
deserialize
- Specified by:
deserializein interfaceODocumentSerializer
-
deserializeWithClassName
-
getFieldNames
Description copied from interface:ODocumentSerializerReturns the array of field names with no values.- Specified by:
getFieldNamesin interfaceODocumentSerializer- Parameters:
reference- TODOembedded-
-
serializeWithClassName
-
serialize
- Specified by:
serializein interfaceODocumentSerializer
-
isSerializingClassNameByDefault
public boolean isSerializingClassNameByDefault()- Specified by:
isSerializingClassNameByDefaultin interfaceODocumentSerializer
-
deserializeFieldTyped
public <RET> RET deserializeFieldTyped(BytesContainer bytes, String iFieldName, boolean isEmbedded, OImmutableSchema schema, OPropertyEncryption encryption) - Specified by:
deserializeFieldTypedin interfaceODocumentSerializer
-
deserializeFieldTypedLoopAndReturn
protected <RET> RET deserializeFieldTypedLoopAndReturn(BytesContainer bytes, String iFieldName, OImmutableSchema schema, OPropertyEncryption encryption) -
deserializeDebug
public void deserializeDebug(BytesContainer bytes, ODatabaseDocumentInternal db, ORecordSerializationDebug debugInfo, OImmutableSchema schema) - Specified by:
deserializeDebugin interfaceODocumentSerializer
-
writeEmbeddedMap
protected int writeEmbeddedMap(BytesContainer bytes, Map<Object, Object> map, OImmutableSchema schema, OPropertyEncryption encryption) -
readEmbeddedMap
-
getPositionsFromEmbeddedMap
protected List<HelperClasses.MapRecordInfo> getPositionsFromEmbeddedMap(BytesContainer bytes, OImmutableSchema schema) -
writeRidBag
-
readRidbag
-
deserializeValue
- Specified by:
deserializeValuein interfaceODocumentSerializer
-
deserializeValue
protected Object deserializeValue(BytesContainer bytes, OType type, ORecordElement owner, boolean embeddedAsDocument, int valueLengthInBytes, boolean justRunThrough, OImmutableSchema schema) -
getFieldType
-
writeEmptyString
-
serializeValue
public int serializeValue(BytesContainer bytes, Object value, OType type, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) - Specified by:
serializeValuein interfaceODocumentSerializer
-
writeEmbeddedCollection
protected int writeEmbeddedCollection(BytesContainer bytes, Collection<?> value, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) -
deserializeEmbeddedCollectionAsCollectionOfBytes
protected List deserializeEmbeddedCollectionAsCollectionOfBytes(BytesContainer bytes, OImmutableSchema schema) -
deserializeEmbeddedMapAsMapOfBytes
protected Map<String,Object> deserializeEmbeddedMapAsMapOfBytes(BytesContainer bytes, OImmutableSchema schema) -
deserializeEmbeddedAsDocument
-
deserializeEmbeddedAsBytes
protected OResultBinary deserializeEmbeddedAsBytes(BytesContainer bytes, int valueLength, OImmutableSchema schema) -
readEmbeddedSet
-
readEmbeddedList
-
skipClassName
-
getComparator
- Specified by:
getComparatorin interfaceODocumentSerializer
-