T
- type of elements being windowedW
- BoundedWindow
subclass used to represent the windows used by this WindowFn
public abstract class NonMergingWindowFn<T,W extends BoundedWindow> extends WindowFn<T,W>
WindowFns
that do not merge windows.WindowFn.AssignContext, WindowFn.MergeContext
Constructor and Description |
---|
NonMergingWindowFn() |
Modifier and Type | Method and Description |
---|---|
boolean |
isNonMerging()
Returns true if this
WindowFn never needs to merge any windows. |
void |
mergeWindows(WindowFn.MergeContext c)
Does whatever merging of windows is necessary.
|
assignsToOneWindow, assignWindows, getDefaultWindowMappingFn, getOutputTime, getWindowTypeDescriptor, isCompatible, populateDisplayData, verifyCompatibility, windowCoder
public final void mergeWindows(WindowFn.MergeContext c)
WindowFn
See MergeOverlappingIntervalWindows.mergeWindows(org.apache.beam.sdk.transforms.windowing.WindowFn<?, org.apache.beam.sdk.transforms.windowing.IntervalWindow>.MergeContext)
for an example of how to override
this method.
mergeWindows
in class WindowFn<T,W extends BoundedWindow>
public final boolean isNonMerging()
WindowFn
WindowFn
never needs to merge any windows.isNonMerging
in class WindowFn<T,W extends BoundedWindow>