public class ORecordSerializerBinaryV0 extends Object implements ODocumentSerializer
Constructor and Description |
---|
ORecordSerializerBinaryV0() |
public OBinaryComparator getComparator()
getComparator
in interface ODocumentSerializer
public void deserializePartial(ODocument document, BytesContainer bytes, String[] iFields)
deserializePartial
in interface ODocumentSerializer
public OBinaryField deserializeField(BytesContainer bytes, OClass iClass, String iFieldName, boolean embedded, OImmutableSchema schema, OPropertyEncryption encryption)
deserializeField
in interface ODocumentSerializer
public void deserializeWithClassName(ODocument document, BytesContainer bytes)
public void deserialize(ODocument document, BytesContainer bytes)
deserialize
in interface ODocumentSerializer
public String[] getFieldNames(ODocument reference, BytesContainer bytes, boolean embedded)
ODocumentSerializer
getFieldNames
in interface ODocumentSerializer
reference
- TODOpublic void serialize(ODocument document, BytesContainer bytes)
serialize
in interface ODocumentSerializer
public void serialize(ODocument document, BytesContainer bytes, OImmutableSchema schema, OPropertyEncryption encryption)
public Object deserializeValue(BytesContainer bytes, OType type, ORecordElement owner)
deserializeValue
in interface ODocumentSerializer
protected Object deserializeEmbeddedAsDocument(BytesContainer bytes, ORecordElement owner)
protected List<HelperClasses.MapRecordInfo> getPositionsFromEmbeddedMap(BytesContainer bytes, OImmutableSchema schema)
protected List deserializeEmbeddedCollectionAsCollectionOfBytes(BytesContainer bytes, OImmutableSchema schema)
protected Map<String,Object> deserializeEmbeddedMapAsMapOfBytes(BytesContainer bytes, OImmutableSchema schema)
protected OResultBinary deserializeEmbeddedAsBytes(BytesContainer bytes, int valueLength, OImmutableSchema schema)
protected Object deserializeValue(BytesContainer bytes, OType type, ORecordElement owner, boolean embeddedAsDocument, int valueLengthInBytes, boolean justRunThrough, OImmutableSchema schema)
protected ORidBag readRidbag(BytesContainer bytes)
protected OClass serializeClass(ODocument document, BytesContainer bytes)
protected int writeLinkMap(BytesContainer bytes, Map<Object,OIdentifiable> map)
protected Map<Object,OIdentifiable> readLinkMap(BytesContainer bytes, ORecordElement owner, boolean justRunThrough, OImmutableSchema schema)
protected Object readEmbeddedMap(BytesContainer bytes, ORecordElement owner)
protected Collection<?> readEmbeddedSet(BytesContainer bytes, ORecordElement owner)
protected Collection<?> readEmbeddedList(BytesContainer bytes, ORecordElement owner)
public int serializeValue(BytesContainer bytes, Object value, OType type, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption)
serializeValue
in interface ODocumentSerializer
protected int writeRidBag(BytesContainer bytes, ORidBag ridbag)
protected int writeEmbeddedMap(BytesContainer bytes, Map<Object,Object> map, OImmutableSchema schema, OPropertyEncryption encryption)
protected int writeEmbeddedCollection(BytesContainer bytes, Collection<?> value, OType linkedType, OImmutableSchema schema, OPropertyEncryption encryption)
protected OType getFieldType(ODocumentEntry entry)
protected int writeEmptyString(BytesContainer bytes)
public boolean isSerializingClassNameByDefault()
isSerializingClassNameByDefault
in interface ODocumentSerializer
protected void skipClassName(BytesContainer bytes)
protected <RET> RET deserializeFieldTypedLoopAndReturn(BytesContainer bytes, String iFieldName, OImmutableSchema schema)
public <RET> RET deserializeFieldTyped(BytesContainer bytes, String iFieldName, boolean isEmbedded, OImmutableSchema schema, OPropertyEncryption encryption)
deserializeFieldTyped
in interface ODocumentSerializer
public HelperClasses.Tuple<Integer,OType> getPointerAndTypeFromCurrentPosition(BytesContainer bytes)
public void deserializeDebug(BytesContainer bytes, ODatabaseDocumentInternal db, ORecordSerializationDebug debugInfo, OImmutableSchema schema)
deserializeDebug
in interface ODocumentSerializer
Copyright © 2009–2020 OrientDB. All rights reserved.