Class GroupAggHelper
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.aggregate.utils.GroupAggHelper
-
public abstract class GroupAggHelper extends Object
A helper to do the logic of group agg.
-
-
Constructor Summary
Constructors Constructor Description GroupAggHelper(RecordCounter recordCounter, boolean generateUpdateBefore, org.apache.flink.api.common.state.StateTtlConfig ttlConfig, AggsHandleFunction function, RecordEqualiser equaliser)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidclearAccumulatorsState()voidprocessElement(org.apache.flink.table.data.RowData input, org.apache.flink.table.data.RowData currentKey, org.apache.flink.table.data.RowData accumulators, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)protected abstract voidupdateAccumulatorsState(org.apache.flink.table.data.RowData accumulators)
-
-
-
Constructor Detail
-
GroupAggHelper
public GroupAggHelper(RecordCounter recordCounter, boolean generateUpdateBefore, org.apache.flink.api.common.state.StateTtlConfig ttlConfig, AggsHandleFunction function, RecordEqualiser equaliser)
-
-
Method Detail
-
processElement
public void processElement(org.apache.flink.table.data.RowData input, org.apache.flink.table.data.RowData currentKey, org.apache.flink.table.data.RowData accumulators, org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) throws Exception- Throws:
Exception
-
updateAccumulatorsState
protected abstract void updateAccumulatorsState(org.apache.flink.table.data.RowData accumulators) throws Exception- Throws:
Exception
-
-