Class GroupAggFunctionBase
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.streaming.api.functions.KeyedProcessFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
org.apache.flink.table.runtime.operators.aggregate.GroupAggFunctionBase
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction
- Direct Known Subclasses:
AsyncStateGroupAggFunction,GroupAggFunction
public abstract class GroupAggFunctionBase
extends org.apache.flink.streaming.api.functions.KeyedProcessFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
Base class for
GroupAggFunction and AsyncStateGroupAggFunction.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.api.functions.KeyedProcessFunction
org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context, org.apache.flink.streaming.api.functions.KeyedProcessFunction.OnTimerContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.table.types.logical.LogicalType[]The accumulator types.protected RecordEqualiserprotected AggsHandleFunctionprotected final GeneratedAggsHandleFunctionThe code generated function used to handle aggregates.protected final booleanWhether this operator will generate UPDATE_BEFORE messages.protected final GeneratedRecordEqualiserThe code generated equaliser used to equal RowData.protected final RecordCounterUsed to count the number of added and retracted input records.protected final org.apache.flink.api.common.state.StateTtlConfigState idle retention config. -
Constructor Summary
ConstructorsConstructorDescriptionGroupAggFunctionBase(GeneratedAggsHandleFunction genAggsHandler, GeneratedRecordEqualiser genRecordEqualiser, org.apache.flink.table.types.logical.LogicalType[] accTypes, int indexOfCountStar, boolean generateUpdateBefore, long stateRetentionTime) -
Method Summary
Methods inherited from class org.apache.flink.streaming.api.functions.KeyedProcessFunction
onTimer, processElementMethods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
-
Field Details
-
genAggsHandler
The code generated function used to handle aggregates. -
genRecordEqualiser
The code generated equaliser used to equal RowData. -
accTypes
protected final org.apache.flink.table.types.logical.LogicalType[] accTypesThe accumulator types. -
recordCounter
Used to count the number of added and retracted input records. -
generateUpdateBefore
protected final boolean generateUpdateBeforeWhether this operator will generate UPDATE_BEFORE messages. -
ttlConfig
protected final org.apache.flink.api.common.state.StateTtlConfig ttlConfigState idle retention config. -
function
-
equaliser
-
-
Constructor Details
-
GroupAggFunctionBase
public GroupAggFunctionBase(GeneratedAggsHandleFunction genAggsHandler, GeneratedRecordEqualiser genRecordEqualiser, org.apache.flink.table.types.logical.LogicalType[] accTypes, int indexOfCountStar, boolean generateUpdateBefore, long stateRetentionTime)
-
-
Method Details
-
open
- Specified by:
openin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
openin classorg.apache.flink.api.common.functions.AbstractRichFunction- Throws:
Exception
-
close
- Specified by:
closein interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
closein classorg.apache.flink.api.common.functions.AbstractRichFunction- Throws:
Exception
-