Class MapUnnester

java.lang.Object
io.trino.operator.unnest.MapUnnester
All Implemented Interfaces:
Unnester

public class MapUnnester extends Object implements Unnester
  • Constructor Details

    • MapUnnester

      public MapUnnester()
  • Method Details

    • getChannelCount

      public int getChannelCount()
      Specified by:
      getChannelCount in interface Unnester
    • resetInput

      public void resetInput(Block block)
      Specified by:
      resetInput in interface Unnester
    • getOutputEntriesPerPosition

      public int[] getOutputEntriesPerPosition()
      Description copied from interface: Unnester
      Return a vector with the number of entries for each position of the block to be unnested.
      Specified by:
      getOutputEntriesPerPosition in interface Unnester
    • buildOutputBlocks

      public Block[] buildOutputBlocks(int[] outputEntriesPerPosition, int startPosition, int inputBatchSize, int outputRowCount)
      Description copied from interface: Unnester
      Build the output blocks for the current batch for this unnester.
      Specified by:
      buildOutputBlocks in interface Unnester
      Parameters:
      outputEntriesPerPosition - A vector that holds the max unnested row count for each position of all blocks to be unnested.
      startPosition - The start input position of this batch.
      inputBatchSize - The number of input rows to be processed in this batch.
      outputRowCount - The total output row count for this batch after the unnest is done.
    • getRetainedSizeInBytes

      public long getRetainedSizeInBytes()
      Specified by:
      getRetainedSizeInBytes in interface Unnester