Package io.trino.operator
Class VariableWidthData
java.lang.Object
io.trino.operator.VariableWidthData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]static final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionVariableWidthData(VariableWidthData variableWidthData) VariableWidthData(List<byte[]> chunks, int openChunkOffset) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]allocate(byte[] pointer, int pointerOffset, int size) voidfree(byte[] pointer, int pointerOffset) List<byte[]> longbyte[]getChunk(byte[] pointer, int pointerOffset) static intgetChunkOffset(byte[] pointer, int pointerOffset) longlongstatic intgetValueLength(byte[] pointer, int pointerOffset) static voidwritePointer(byte[] pointer, int pointerOffset, int chunkIndex, int chunkOffset, int valueLength)
-
Field Details
-
MIN_CHUNK_SIZE
public static final int MIN_CHUNK_SIZE- See Also:
-
MAX_CHUNK_SIZE
public static final int MAX_CHUNK_SIZE- See Also:
-
POINTER_SIZE
public static final int POINTER_SIZE- See Also:
-
EMPTY_CHUNK
public static final byte[] EMPTY_CHUNK
-
-
Constructor Details
-
VariableWidthData
public VariableWidthData() -
VariableWidthData
-
VariableWidthData
-
-
Method Details
-
getRetainedSizeBytes
public long getRetainedSizeBytes() -
getAllChunks
-
getAllocatedBytes
public long getAllocatedBytes() -
getFreeBytes
public long getFreeBytes() -
allocate
public byte[] allocate(byte[] pointer, int pointerOffset, int size) -
free
public void free(byte[] pointer, int pointerOffset) -
getChunk
public byte[] getChunk(byte[] pointer, int pointerOffset) -
getChunkOffset
public static int getChunkOffset(byte[] pointer, int pointerOffset) -
getValueLength
public static int getValueLength(byte[] pointer, int pointerOffset) -
writePointer
public static void writePointer(byte[] pointer, int pointerOffset, int chunkIndex, int chunkOffset, int valueLength)
-