W - window typepublic class InvalidWindows<W extends BoundedWindow> extends WindowFn<java.lang.Object,W>
WindowFn that represents an invalid pipeline state.WindowFn.AssignContext, WindowFn.MergeContext| Constructor and Description |
|---|
InvalidWindows(java.lang.String cause,
WindowFn<?,W> originalWindowFn) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<W> |
assignWindows(WindowFn.AssignContext c)
Given a timestamp and element, returns the set of windows into which it
should be placed.
|
java.lang.String |
getCause()
Returns the reason that this
WindowFn is invalid. |
WindowFn<?,W> |
getOriginalWindowFn()
Returns the original windowFn that this InvalidWindows replaced.
|
boolean |
isCompatible(WindowFn<?,?> other)
InvalidWindows objects with the same originalWindowFn are compatible. |
void |
mergeWindows(WindowFn.MergeContext c)
Does whatever merging of windows is necessary.
|
Coder<W> |
windowCoder()
Returns the
Coder used for serializing the windows used
by this windowFn. |
getSideInputWindowpublic java.lang.String getCause()
WindowFn is invalid.public WindowFn<?,W> getOriginalWindowFn()
public java.util.Collection<W> assignWindows(WindowFn.AssignContext c)
WindowFnassignWindows in class WindowFn<java.lang.Object,W extends BoundedWindow>public void mergeWindows(WindowFn.MergeContext c)
WindowFn See MergeOverlappingIntervalWindows.mergeWindows(com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn<?, com.google.cloud.dataflow.sdk.transforms.windowing.IntervalWindow>.MergeContext) for an
example of how to override this method.
mergeWindows in class WindowFn<java.lang.Object,W extends BoundedWindow>public Coder<W> windowCoder()
WindowFnCoder used for serializing the windows used
by this windowFn.windowCoder in class WindowFn<java.lang.Object,W extends BoundedWindow>public boolean isCompatible(WindowFn<?,?> other)
InvalidWindows objects with the same originalWindowFn are compatible.isCompatible in class WindowFn<java.lang.Object,W extends BoundedWindow>