Class GroupListaggAggregationState
java.lang.Object
io.trino.operator.aggregation.listagg.AbstractListaggAggregationState
io.trino.operator.aggregation.listagg.GroupListaggAggregationState
- All Implemented Interfaces:
ListaggAggregationState,AccumulatorState,GroupedAccumulatorState
public class GroupListaggAggregationState
extends AbstractListaggAggregationState
implements GroupedAccumulatorState
-
Field Summary
Fields inherited from class io.trino.operator.aggregation.listagg.AbstractListaggAggregationState
closedRecordGroups, openRecordGroup, RECORDS_PER_GROUP, RECORDS_PER_GROUP_MASK, recordSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ValueBlock block, int position) copy()voidensureCapacity(int maxGroupId) longvoidsetGroupId(int groupId) voidwrite(VariableWidthBlockBuilder blockBuilder) Methods inherited from class io.trino.operator.aggregation.listagg.AbstractListaggAggregationState
getRecordOffset, getRecords, initialize, merge, serialize, size, writeEntry
-
Constructor Details
-
GroupListaggAggregationState
public GroupListaggAggregationState()
-
-
Method Details
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState- Overrides:
getEstimatedSizein classAbstractListaggAggregationState
-
setGroupId
public void setGroupId(int groupId) - Specified by:
setGroupIdin interfaceGroupedAccumulatorState
-
ensureCapacity
public void ensureCapacity(int maxGroupId) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
add
- Specified by:
addin interfaceListaggAggregationState- Overrides:
addin classAbstractListaggAggregationState
-
write
- Specified by:
writein interfaceListaggAggregationState
-
copy
- Specified by:
copyin interfaceAccumulatorState
-