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() |
KeyedStateStore |
globalState() |
<X> void |
output(OutputTag<X> outputTag,
X value) |
String |
toString() |
KeyedStateStore |
windowState() |
protected WindowOperator.AbstractPerWindowStateStore windowState
public WindowContext(W window)
public long currentProcessingTime()
currentProcessingTime
in interface InternalWindowFunction.InternalWindowContext
public long currentWatermark()
currentWatermark
in interface InternalWindowFunction.InternalWindowContext
public KeyedStateStore windowState()
windowState
in interface InternalWindowFunction.InternalWindowContext
public KeyedStateStore globalState()
globalState
in interface InternalWindowFunction.InternalWindowContext
public <X> void output(OutputTag<X> outputTag, X value)
output
in interface InternalWindowFunction.InternalWindowContext
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.