public class GroupTableAggFunction
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>
| Constructor and Description |
|---|
GroupTableAggFunction(GeneratedTableAggsHandleFunction genAggsHandler,
org.apache.flink.table.types.logical.LogicalType[] accTypes,
int indexOfCountStar,
boolean generateUpdateBefore,
boolean incrementalUpdate,
long stateRetentionTime)
Creates a
GroupTableAggFunction. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(org.apache.flink.api.common.functions.OpenContext openContext) |
void |
processElement(org.apache.flink.table.data.RowData input,
org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) |
public GroupTableAggFunction(GeneratedTableAggsHandleFunction genAggsHandler, org.apache.flink.table.types.logical.LogicalType[] accTypes, int indexOfCountStar, boolean generateUpdateBefore, boolean incrementalUpdate, long stateRetentionTime)
GroupTableAggFunction.genAggsHandler - The code generated function used to handle table aggregates.accTypes - The accumulator types.indexOfCountStar - The index of COUNT(*) in the aggregates. -1 when the input doesn't
contain COUNT(*), i.e. doesn't contain retraction messages. We make sure there is a
COUNT(*) if input stream contains retraction.generateUpdateBefore - Whether this operator will generate UPDATE_BEFORE messages.incrementalUpdate - Whether to update acc result incrementally.stateRetentionTime - state idle retention time which unit is MILLISECONDS.public void open(org.apache.flink.api.common.functions.OpenContext openContext)
throws Exception
Exceptionpublic void processElement(org.apache.flink.table.data.RowData input,
org.apache.flink.streaming.api.functions.KeyedProcessFunction.Context ctx,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
throws Exception
processElement in class 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>ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.