IN - The type of the input value.OUT - The type of the output value.KEY - The type of the window key.W - The type of the window.@Internal public class InternalProcessApplyWindowContext<IN,OUT,KEY,W extends Window> extends ProcessWindowFunction.Context
| Modifier and Type | Method and Description |
|---|---|
long |
currentProcessingTime()
Returns the current processing time.
|
long |
currentWatermark()
Returns the current event-time watermark.
|
org.apache.flink.api.common.state.KeyedStateStore |
globalState()
State accessor for per-key global state.
|
<X> void |
output(org.apache.flink.util.OutputTag<X> outputTag,
X value)
Emits a record to the side output identified by the
OutputTag. |
W |
window()
Returns the window that is being evaluated.
|
org.apache.flink.api.common.state.KeyedStateStore |
windowState()
State accessor for per-key and per-window state.
|
public W window()
ProcessWindowFunction.Contextwindow in class ProcessWindowFunction.Contextpublic long currentProcessingTime()
ProcessWindowFunction.ContextcurrentProcessingTime in class ProcessWindowFunction.Contextpublic long currentWatermark()
ProcessWindowFunction.ContextcurrentWatermark in class ProcessWindowFunction.Contextpublic org.apache.flink.api.common.state.KeyedStateStore windowState()
ProcessWindowFunction.ContextNOTE:If you use per-window state you have to ensure that you clean it up by
implementing ProcessWindowFunction.clear(Context).
windowState in class ProcessWindowFunction.Contextpublic org.apache.flink.api.common.state.KeyedStateStore globalState()
ProcessWindowFunction.ContextglobalState in class ProcessWindowFunction.Contextpublic <X> void output(org.apache.flink.util.OutputTag<X> outputTag,
X value)
ProcessWindowFunction.ContextOutputTag.output in class ProcessWindowFunction.ContextoutputTag - the OutputTag that identifies the side output to emit to.value - The record to emit.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.