public final class BinaryGeneric<T> extends LazyBinaryFormat<T>
HIGHEST_FIRST_BIT, HIGHEST_SECOND_TO_EIGHTH_BIT, MAX_FIX_PART_DATA_SIZE
Constructor and Description |
---|
BinaryGeneric(MemorySegment[] segments,
int offset,
int sizeInBytes) |
BinaryGeneric(MemorySegment[] segments,
int offset,
int sizeInBytes,
T javaObject) |
BinaryGeneric(T javaObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static <T> T |
getJavaObjectFromBinaryGeneric(BinaryGeneric<T> value,
TypeSerializer<T> ser) |
int |
hashCode() |
protected BinarySection |
materialize(TypeSerializer<T> serializer)
Materialize java object to binary format.
|
String |
toString() |
ensureMaterialized, getBinarySection, getJavaObject, getOffset, getSegments, getSizeInBytes, setJavaObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
readBinaryFieldFromSegments, readBinaryStringFieldFromSegments
public BinaryGeneric(T javaObject)
public BinaryGeneric(MemorySegment[] segments, int offset, int sizeInBytes)
public BinaryGeneric(MemorySegment[] segments, int offset, int sizeInBytes, T javaObject)
protected BinarySection materialize(TypeSerializer<T> serializer)
LazyBinaryFormat
materialize
in class LazyBinaryFormat<T>
public static <T> T getJavaObjectFromBinaryGeneric(BinaryGeneric<T> value, TypeSerializer<T> ser)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.