IN - The type of the input value.OUT - The type of the output value.KEY - The type of the key.public interface InternalWindowFunction<IN,OUT,KEY,W extends Window>
extends org.apache.flink.api.common.functions.Function
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
InternalWindowFunction.InternalWindowContext
A context for
InternalWindowFunction, similar to ProcessWindowFunction.Context but for
internal use. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(W window,
InternalWindowFunction.InternalWindowContext context)
Deletes any state in the
Context when the Window expires (the watermark passes its
maxTimestamp + allowedLateness). |
void |
process(KEY key,
W window,
InternalWindowFunction.InternalWindowContext context,
IN input,
org.apache.flink.util.Collector<OUT> out)
Evaluates the window and outputs none or several elements.
|
void process(KEY key, W window, InternalWindowFunction.InternalWindowContext context, IN input, org.apache.flink.util.Collector<OUT> out) throws Exception
context - The context in which the window is being evaluated.input - The elements in the window being evaluated.out - A collector for emitting elements.Exception - The function may throw exceptions to fail the program and trigger recovery.void clear(W window, InternalWindowFunction.InternalWindowContext context) throws Exception
Context when the Window expires (the watermark passes its
maxTimestamp + allowedLateness).context - The context to which the window is being evaluatedException - The function may throw exceptions to fail the program and trigger recovery.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.