Class AsyncWindowOperator.WindowContext
- java.lang.Object
-
- org.apache.flink.runtime.asyncprocessing.operators.windowing.AsyncWindowOperator.WindowContext
-
- All Implemented Interfaces:
Serializable,InternalAsyncWindowFunction.InternalWindowContext
public class AsyncWindowOperator.WindowContext extends Object implements InternalAsyncWindowFunction.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 DeclaredVariable<W>windowprotected AsyncWindowOperator.AbstractPerWindowStateStorewindowState
-
Constructor Summary
Constructors Constructor Description WindowContext(DeclaredVariable<W> window)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.api.common.state.v2.StateFuture<Void>clear()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
-
window
protected final DeclaredVariable<W extends Window> window
-
windowState
protected AsyncWindowOperator.AbstractPerWindowStateStore windowState
-
-
Constructor Detail
-
WindowContext
public WindowContext(DeclaredVariable<W> window)
-
-
Method Detail
-
clear
public org.apache.flink.api.common.state.v2.StateFuture<Void> clear() throws Exception
- Throws:
Exception
-
currentProcessingTime
public long currentProcessingTime()
- Specified by:
currentProcessingTimein interfaceInternalAsyncWindowFunction.InternalWindowContext
-
currentWatermark
public long currentWatermark()
- Specified by:
currentWatermarkin interfaceInternalAsyncWindowFunction.InternalWindowContext
-
windowState
public org.apache.flink.api.common.state.KeyedStateStore windowState()
- Specified by:
windowStatein interfaceInternalAsyncWindowFunction.InternalWindowContext
-
globalState
public org.apache.flink.api.common.state.KeyedStateStore globalState()
- Specified by:
globalStatein interfaceInternalAsyncWindowFunction.InternalWindowContext
-
output
public <X> void output(org.apache.flink.util.OutputTag<X> outputTag, X value)- Specified by:
outputin interfaceInternalAsyncWindowFunction.InternalWindowContext
-
-