Package io.trino.operator.unnest
Class MapUnnester
java.lang.Object
io.trino.operator.unnest.MapUnnester
- All Implemented Interfaces:
Unnester
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBlock[]buildOutputBlocks(int[] outputEntriesPerPosition, int startPosition, int inputBatchSize, int outputRowCount) Build the output blocks for the current batch for this unnester.intint[]Return a vector with the number of entries for each position of the block to be unnested.longvoidresetInput(Block block)
-
Constructor Details
-
MapUnnester
public MapUnnester()
-
-
Method Details
-
getChannelCount
public int getChannelCount()- Specified by:
getChannelCountin interfaceUnnester
-
resetInput
- Specified by:
resetInputin interfaceUnnester
-
getOutputEntriesPerPosition
public int[] getOutputEntriesPerPosition()Description copied from interface:UnnesterReturn a vector with the number of entries for each position of the block to be unnested.- Specified by:
getOutputEntriesPerPositionin interfaceUnnester
-
buildOutputBlocks
public Block[] buildOutputBlocks(int[] outputEntriesPerPosition, int startPosition, int inputBatchSize, int outputRowCount) Description copied from interface:UnnesterBuild the output blocks for the current batch for this unnester.- Specified by:
buildOutputBlocksin interfaceUnnester- 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:
getRetainedSizeInBytesin interfaceUnnester
-