public class WindowOperator.WindowContext extends Object implements InternalWindowFunction.InternalWindowContext
ProcessWindowFunction invocations. This can be reused
by setting the key and window fields. No internal state must be kept in the
WindowContext.| Modifier and Type | Field and Description |
|---|---|
protected W |
window |
protected WindowOperator.AbstractPerWindowStateStore |
windowState |
| Constructor and Description |
|---|
WindowContext(W window) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
long |
currentProcessingTime() |
long |
currentWatermark() |
org.apache.flink.api.common.state.KeyedStateStore |
globalState() |
<X> void |
output(org.apache.flink.util.OutputTag<X> outputTag,
X value) |
String |
toString() |
org.apache.flink.api.common.state.KeyedStateStore |
windowState() |
protected WindowOperator.AbstractPerWindowStateStore windowState
public WindowContext(W window)
public long currentProcessingTime()
currentProcessingTime in interface InternalWindowFunction.InternalWindowContextpublic long currentWatermark()
currentWatermark in interface InternalWindowFunction.InternalWindowContextpublic org.apache.flink.api.common.state.KeyedStateStore windowState()
windowState in interface InternalWindowFunction.InternalWindowContextpublic org.apache.flink.api.common.state.KeyedStateStore globalState()
globalState in interface InternalWindowFunction.InternalWindowContextpublic <X> void output(org.apache.flink.util.OutputTag<X> outputTag,
X value)
output in interface InternalWindowFunction.InternalWindowContextCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.