Class HelperClasses
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.binary.HelperClasses
- Author:
- mdjurovi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]bytesFromString(String toWrite) static longconvertDayToTimezone(TimeZone from, TimeZone to, long time) static OGlobalPropertygetGlobalProperty(ODocument document, int len) static OTypegetLinkedType(OClass clazz, OType type, String key) static OTypegetTypeFromValueEmbedded(Object fieldValue) static byte[]readBinary(BytesContainer bytes) static bytereadByte(BytesContainer container) static intreadInteger(BytesContainer container) static <T extends OTrackedMultiValue<?,OIdentifiable>>
TreadLinkCollection(BytesContainer bytes, T found, boolean justRunThrough) static Map<Object,OIdentifiable> readLinkMap(BytesContainer bytes, ORecordElement owner, boolean justRunThrough) static longreadLong(BytesContainer container) static ORecordIdreadOptimizedLink(BytesContainer bytes, boolean justRunThrough) static OTypereadOType(BytesContainer bytes, boolean justRunThrough) static ORidBagreadRidbag(BytesContainer bytes) static StringreadString(BytesContainer bytes) static OTypereadType(BytesContainer bytes) static StringstringFromBytes(byte[] bytes, int offset, int len) static StringstringFromBytesIntern(byte[] bytes, int offset, int len) static intwriteBinary(BytesContainer bytes, byte[] valueBytes) static voidwriteByte(BytesContainer bytes, byte val) protected static voidwriteEmbeddedRidbag(BytesContainer bytes, ORidBag ridbag) static intwriteLinkCollection(BytesContainer bytes, Collection<OIdentifiable> value) static intwriteLinkMap(BytesContainer bytes, Map<Object, OIdentifiable> map) static voidwriteLinkOptimized(BytesContainer bytes, OIdentifiable link) static intwriteNullLink(BytesContainer bytes) static intwriteOptimizedLink(BytesContainer bytes, OIdentifiable link) static voidwriteOType(BytesContainer bytes, int pos, OType type) static voidwriteRidBag(BytesContainer bytes, ORidBag ridbag, OSerializationContext ctx) protected static voidwriteSBTreeRidbag(BytesContainer bytes, ORidBag ridbag, UUID ownerUuid) static intwriteString(BytesContainer bytes, String toWrite) static voidwriteType(BytesContainer bytes, OType type)
-
Field Details
-
CHARSET_UTF_8
- See Also:
-
NULL_RECORD_ID
-
MILLISEC_PER_DAY
public static final long MILLISEC_PER_DAY- See Also:
-
-
Constructor Details
-
HelperClasses
public HelperClasses()
-
-
Method Details
-
readOType
-
writeOType
-
writeType
-
readType
-
readBinary
-
readString
-
readInteger
-
readByte
-
readLong
-
readOptimizedLink
-
stringFromBytes
-
stringFromBytesIntern
-
bytesFromString
-
convertDayToTimezone
-
getGlobalProperty
-
writeBinary
-
writeOptimizedLink
-
writeNullLink
-
getTypeFromValueEmbedded
-
writeLinkCollection
-
readLinkCollection
public static <T extends OTrackedMultiValue<?,OIdentifiable>> T readLinkCollection(BytesContainer bytes, T found, boolean justRunThrough) -
writeString
-
writeLinkMap
-
readLinkMap
public static Map<Object,OIdentifiable> readLinkMap(BytesContainer bytes, ORecordElement owner, boolean justRunThrough) -
writeByte
-
writeRidBag
-
writeEmbeddedRidbag
-
writeSBTreeRidbag
-
writeLinkOptimized
-
readRidbag
-
getLinkedType
-