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 Function
Modifier and Type | Interface and Description |
---|---|
static interface |
InternalWindowFunction.InternalWindowContext
A context for
InternalWindowFunction , similar to ProcessWindowFunction.Context but for
internal use. |
Modifier and Type | Method and Description |
---|---|
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,
Collector<OUT> out)
Evaluates the window and outputs none or several elements.
|
void process(KEY key, W window, InternalWindowFunction.InternalWindowContext context, IN input, 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–2024 The Apache Software Foundation. All rights reserved.