public class Twister2AssignContext<T,W extends BoundedWindow> extends WindowFn.AssignContext
Constructor and Description |
---|
Twister2AssignContext(WindowFn<T,W> fn,
org.apache.beam.sdk.util.WindowedValue<T> value) |
Modifier and Type | Method and Description |
---|---|
T |
element()
Returns the current element.
|
Instant |
timestamp()
Returns the timestamp of the current element.
|
BoundedWindow |
window()
Returns the window of the current element prior to this
WindowFn being called. |
public T element()
WindowFn.AssignContext
element
in class WindowFn.AssignContext
public Instant timestamp()
WindowFn.AssignContext
timestamp
in class WindowFn.AssignContext
public BoundedWindow window()
WindowFn.AssignContext
WindowFn
being called.window
in class WindowFn.AssignContext