Class GroupArrayAggregationState
java.lang.Object
io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
io.trino.operator.aggregation.arrayagg.GroupArrayAggregationState
- All Implemented Interfaces:
ArrayAggregationState,AccumulatorState,GroupedAccumulatorState
public final class GroupArrayAggregationState
extends AbstractGroupedAccumulatorState
implements ArrayAggregationState
-
Constructor Summary
ConstructorsConstructorDescriptionGroupArrayAggregationState(Type type, MethodHandle readFlat, MethodHandle writeFlat) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ValueBlock block, int position) voidensureCapacity(int maxGroupId) longbooleanisEmpty()voidwriteAll(BlockBuilder blockBuilder) Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copyMethods inherited from interface io.trino.operator.aggregation.arrayagg.ArrayAggregationState
merge
-
Constructor Details
-
GroupArrayAggregationState
-
-
Method Details
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
ensureCapacity
public void ensureCapacity(int maxGroupId) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
add
- Specified by:
addin interfaceArrayAggregationState
-
writeAll
- Specified by:
writeAllin interfaceArrayAggregationState
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceArrayAggregationState
-