Package io.trino.operator.aggregation
Class AggregationMask
java.lang.Object
io.trino.operator.aggregation.AggregationMask
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyMaskBlock(Block maskBlock) static AggregationMaskcreateSelectAll(int positionCount) static AggregationMaskcreateSelectedPositions(int positionCount, int[] selectedPositions, int selectedPositionCount) Creates a mask with the given selected positions.static AggregationMaskcreateSelectNone(int positionCount) filterPage(Page page) intintDo not use this to filter a page, as the underlying array can change, and this will change the page after the filtering.int[]booleanbooleanvoidreset(int positionCount) voidunselectNullPositions(Block block)
-
Method Details
-
createSelectNone
-
createSelectAll
-
createSelectedPositions
public static AggregationMask createSelectedPositions(int positionCount, int[] selectedPositions, int selectedPositionCount) Creates a mask with the given selected positions. Selected positions must be sorted in ascending order. -
reset
public void reset(int positionCount) -
getPositionCount
public int getPositionCount() -
isSelectAll
public boolean isSelectAll() -
isSelectNone
public boolean isSelectNone() -
filterPage
-
getSelectedPositionCount
public int getSelectedPositionCount()Do not use this to filter a page, as the underlying array can change, and this will change the page after the filtering. -
getSelectedPositions
public int[] getSelectedPositions() -
unselectNullPositions
-
applyMaskBlock
-