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