Class WindowOperator.WindowContext
java.lang.Object
org.apache.flink.streaming.runtime.operators.windowing.WindowOperator.WindowContext
- All Implemented Interfaces:
Serializable,InternalWindowFunction.InternalWindowContext
public class WindowOperator.WindowContext
extends Object
implements InternalWindowFunction.InternalWindowContext
A utility class for handling
ProcessWindowFunction invocations. This can be reused by
setting the key and window fields. No internal state must be kept in the
WindowContext.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Wprotected WindowOperator<K,IN, ACC, OUT, W>.AbstractPerWindowStateStore -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
window
-
windowState
-
-
Constructor Details
-
WindowContext
-
-
Method Details
-
toString
-
clear
- Throws:
Exception
-
currentProcessingTime
public long currentProcessingTime()- Specified by:
currentProcessingTimein interfaceInternalWindowFunction.InternalWindowContext
-
currentWatermark
public long currentWatermark()- Specified by:
currentWatermarkin interfaceInternalWindowFunction.InternalWindowContext
-
windowState
public org.apache.flink.api.common.state.KeyedStateStore windowState()- Specified by:
windowStatein interfaceInternalWindowFunction.InternalWindowContext
-
globalState
public org.apache.flink.api.common.state.KeyedStateStore globalState()- Specified by:
globalStatein interfaceInternalWindowFunction.InternalWindowContext
-
output
public <X> void output(org.apache.flink.util.OutputTag<X> outputTag, X value) - Specified by:
outputin interfaceInternalWindowFunction.InternalWindowContext
-