Class VariableWidthData

java.lang.Object
io.trino.operator.VariableWidthData

public final class VariableWidthData extends Object
  • Field Details

  • Constructor Details

    • VariableWidthData

      public VariableWidthData()
    • VariableWidthData

      public VariableWidthData(VariableWidthData variableWidthData)
    • VariableWidthData

      public VariableWidthData(List<byte[]> chunks, int openChunkOffset)
  • Method Details

    • getRetainedSizeBytes

      public long getRetainedSizeBytes()
    • getAllChunks

      public List<byte[]> 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)