ProcessWindowFunction
Base abstract class for functions that are evaluated over keyed (grouped) windows using a context for retrieving extra information.
- Type parameters:
- IN
The type of the input value.
- KEY
The type of the key.
- OUT
The type of the output value.
- W
The type of the window.
Type members
Classlikes
Value members
Abstract methods
Evaluates the window and outputs none or several elements.
Evaluates the window and outputs none or several elements.
- Value parameters:
- context
The context in which the window is being evaluated.
- elements
The elements in the window being evaluated.
- key
The key for which this window is evaluated.
- out
A collector for emitting elements.
- Throws:
- Exception
The function may throw exceptions to fail the program and trigger recovery.
Concrete methods
Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp
+
allowedLateness
).
Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp
+
allowedLateness
).
- Value parameters:
- context
The context to which the window is being evaluated
- Throws:
- Exception
The function may throw exceptions to fail the program and trigger recovery.