Class ORecordSerializerBinaryV0
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV0
- All Implemented Interfaces:
ODocumentSerializer
- Direct Known Subclasses:
ORecordSerializerBinaryDebug
-
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) 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 OTypegetLinkedType(ODocument document, OType type, String key) 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 Map<Object, OIdentifiable> readLinkMap(BytesContainer bytes, ORecordElement owner, boolean justRunThrough, OImmutableSchema schema) protected ORidBagreadRidbag(BytesContainer bytes) voidserialize(ODocument document, BytesContainer bytes) voidserialize(ODocument document, BytesContainer bytes, OImmutableSchema schema, OPropertyEncryption encryption) protected OClassserializeClass(ODocument document, BytesContainer bytes) intserializeValue(BytesContainer bytes, Object value, OType type, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) 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 intwriteLinkMap(BytesContainer bytes, Map<Object, OIdentifiable> map) protected intwriteRidBag(BytesContainer bytes, ORidBag ridbag)
-
Constructor Details
-
ORecordSerializerBinaryV0
public ORecordSerializerBinaryV0()
-
-
Method Details
-
getComparator
- Specified by:
getComparatorin interfaceODocumentSerializer
-
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
-
deserializeWithClassName
-
deserialize
- Specified by:
deserializein interfaceODocumentSerializer
-
getFieldNames
Description copied from interface:ODocumentSerializerReturns the array of field names with no values.- Specified by:
getFieldNamesin interfaceODocumentSerializer- Parameters:
reference- TODOembedded-
-
serialize
- Specified by:
serializein interfaceODocumentSerializer
-
serialize
public void serialize(ODocument document, BytesContainer bytes, OImmutableSchema schema, OPropertyEncryption encryption) -
deserializeValue
- Specified by:
deserializeValuein interfaceODocumentSerializer
-
deserializeEmbeddedAsDocument
-
getPositionsFromEmbeddedMap
protected List<HelperClasses.MapRecordInfo> getPositionsFromEmbeddedMap(BytesContainer bytes, OImmutableSchema schema) -
deserializeEmbeddedCollectionAsCollectionOfBytes
protected List deserializeEmbeddedCollectionAsCollectionOfBytes(BytesContainer bytes, OImmutableSchema schema) -
deserializeEmbeddedMapAsMapOfBytes
protected Map<String,Object> deserializeEmbeddedMapAsMapOfBytes(BytesContainer bytes, OImmutableSchema schema) -
deserializeEmbeddedAsBytes
protected OResultBinary deserializeEmbeddedAsBytes(BytesContainer bytes, int valueLength, OImmutableSchema schema) -
deserializeValue
protected Object deserializeValue(BytesContainer bytes, OType type, ORecordElement owner, boolean embeddedAsDocument, int valueLengthInBytes, boolean justRunThrough, OImmutableSchema schema) -
readRidbag
-
serializeClass
-
writeLinkMap
-
readLinkMap
protected Map<Object,OIdentifiable> readLinkMap(BytesContainer bytes, ORecordElement owner, boolean justRunThrough, OImmutableSchema schema) -
readEmbeddedMap
-
readEmbeddedSet
-
readEmbeddedList
-
getLinkedType
-
serializeValue
public int serializeValue(BytesContainer bytes, Object value, OType type, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) - Specified by:
serializeValuein interfaceODocumentSerializer
-
writeRidBag
-
writeEmbeddedMap
protected int writeEmbeddedMap(BytesContainer bytes, Map<Object, Object> map, OImmutableSchema schema, OPropertyEncryption encryption) -
writeEmbeddedCollection
protected int writeEmbeddedCollection(BytesContainer bytes, Collection<?> value, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption) -
getFieldType
-
writeEmptyString
-
isSerializingClassNameByDefault
public boolean isSerializingClassNameByDefault()- Specified by:
isSerializingClassNameByDefaultin interfaceODocumentSerializer
-
skipClassName
-
deserializeFieldTypedLoopAndReturn
protected <RET> RET deserializeFieldTypedLoopAndReturn(BytesContainer bytes, String iFieldName, OImmutableSchema schema) -
deserializeFieldTyped
public <RET> RET deserializeFieldTyped(BytesContainer bytes, String iFieldName, boolean isEmbedded, OImmutableSchema schema, OPropertyEncryption encryption) - Specified by:
deserializeFieldTypedin interfaceODocumentSerializer
-
getPointerAndTypeFromCurrentPosition
public HelperClasses.Tuple<Integer,OType> getPointerAndTypeFromCurrentPosition(BytesContainer bytes) -
deserializeDebug
public void deserializeDebug(BytesContainer bytes, ODatabaseDocumentInternal db, ORecordSerializationDebug debugInfo, OImmutableSchema schema) - Specified by:
deserializeDebugin interfaceODocumentSerializer
-