Class TypedHeap

java.lang.Object
io.trino.operator.aggregation.minmaxn.TypedHeap

public final class TypedHeap extends Object
  • Constructor Details

  • Method Details

    • getElementType

      public Type getElementType()
    • getCapacity

      public int getCapacity()
    • getEstimatedSize

      public long getEstimatedSize()
    • isEmpty

      public boolean isEmpty()
    • writeAllSorted

      public void writeAllSorted(BlockBuilder resultBlockBuilder)
    • writeAllUnsorted

      public void writeAllUnsorted(BlockBuilder elementBuilder)
    • add

      public void add(ValueBlock block, int position)
    • compactIfNecessary

      public static VariableWidthData compactIfNecessary(VariableWidthData data, byte[] fixedSizeChunk, int fixedRecordSize, int fixedRecordPointerOffset, int recordCount, TypedHeap.RelocateVariableWidthOffsets relocateVariableWidthOffsets)