public class GlobalWindows extends NonMergingWindowFn<java.lang.Object,GlobalWindow>
WindowFn where all data is in the same window.WindowFn.AssignContext, WindowFn.MergeContext| Constructor and Description |
|---|
GlobalWindows() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<GlobalWindow> |
assignWindows(WindowFn.AssignContext c)
Given a timestamp and element, returns the set of windows into which it
should be placed.
|
GlobalWindow |
getSideInputWindow(BoundedWindow window)
Returns the window of the side input corresponding to the given window of
the main input.
|
boolean |
isCompatible(WindowFn o)
Returns whether this performs the same merging as the given
WindowFn. |
Coder<GlobalWindow> |
windowCoder()
Returns the
Coder used for serializing the windows used
by this windowFn. |
mergeWindowspublic java.util.Collection<GlobalWindow> assignWindows(WindowFn.AssignContext c)
WindowFnassignWindows in class WindowFn<java.lang.Object,GlobalWindow>public boolean isCompatible(WindowFn o)
WindowFnWindowFn.isCompatible in class WindowFn<java.lang.Object,GlobalWindow>public Coder<GlobalWindow> windowCoder()
WindowFnCoder used for serializing the windows used
by this windowFn.windowCoder in class WindowFn<java.lang.Object,GlobalWindow>public GlobalWindow getSideInputWindow(BoundedWindow window)
WindowFn For example, if both the main and side inputs are windowed by
FixedWindows, the side input corresponding to a particular main
input element will be the one in the same window as that element.
Authors of custom WindowFns should override this if that is not
the desired behavior for side inputs with their WindowFn.
getSideInputWindow in class WindowFn<java.lang.Object,GlobalWindow>