W - The type of Window that assigner assigns.public class GeneralWindowProcessFunction<K,W extends Window> extends InternalWindowProcessFunction<K,W>
InternalWindowProcessFunction. The GroupWindowAssigner should be a regular assigner without implement PanedWindowAssigner
or MergingWindowAssigner.InternalWindowProcessFunction.Context<K,W extends Window>allowedLateness, ctx, windowAggregator, windowAssigner| Constructor and Description |
|---|
GeneralWindowProcessFunction(GroupWindowAssigner<W> windowAssigner,
NamespaceAggsHandleFunctionBase<W> windowAggregator,
long allowedLateness) |
| Modifier and Type | Method and Description |
|---|---|
Collection<W> |
assignActualWindows(org.apache.flink.table.data.RowData inputRow,
long timestamp)
Assigns the input element into the actual windows which the
Trigger should trigger
on. |
Collection<W> |
assignStateNamespace(org.apache.flink.table.data.RowData inputRow,
long timestamp)
Assigns the input element into the state namespace which the input element should be
accumulated/retracted into.
|
void |
cleanWindowIfNeeded(W window,
long time)
Cleans the given window if needed.
|
void |
prepareAggregateAccumulatorForEmit(W window)
Prepares the accumulator of the given window before emit the final result.
|
close, isCleanupTime, isWindowLate, openpublic GeneralWindowProcessFunction(GroupWindowAssigner<W> windowAssigner, NamespaceAggsHandleFunctionBase<W> windowAggregator, long allowedLateness)
public Collection<W> assignStateNamespace(org.apache.flink.table.data.RowData inputRow, long timestamp) throws Exception
InternalWindowProcessFunctionassignStateNamespace in class InternalWindowProcessFunction<K,W extends Window>inputRow - the input elementtimestamp - the timestamp of the element or the processing time (depends on the type of
assigner)Exceptionpublic Collection<W> assignActualWindows(org.apache.flink.table.data.RowData inputRow, long timestamp) throws Exception
InternalWindowProcessFunctionTrigger should trigger
on.assignActualWindows in class InternalWindowProcessFunction<K,W extends Window>inputRow - the input elementtimestamp - the timestamp of the element or the processing time (depends on the type of
assigner)Exceptionpublic void prepareAggregateAccumulatorForEmit(W window) throws Exception
InternalWindowProcessFunctionprepareAggregateAccumulatorForEmit in class InternalWindowProcessFunction<K,W extends Window>window - the windowExceptionpublic void cleanWindowIfNeeded(W window, long time) throws Exception
InternalWindowProcessFunctioncleanWindowIfNeeded in class InternalWindowProcessFunction<K,W extends Window>window - the window to cleanuptime - the current timestampExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.