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 handlingProcessWindowFunctioninvocations. This can be reused by setting thekeyandwindowfields. No internal state must be kept in theWindowContext.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Wwindowprotected WindowOperator.AbstractPerWindowStateStorewindowState
-
Constructor Summary
Constructors Constructor Description WindowContext(W window)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()longcurrentProcessingTime()longcurrentWatermark()org.apache.flink.api.common.state.KeyedStateStoreglobalState()<X> voidoutput(org.apache.flink.util.OutputTag<X> outputTag, X value)StringtoString()org.apache.flink.api.common.state.KeyedStateStorewindowState()
-
-
-
Field Detail
-
windowState
protected WindowOperator.AbstractPerWindowStateStore windowState
-
-
Constructor Detail
-
WindowContext
public WindowContext(W window)
-
-
Method Detail
-
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
-
-