W - window typepublic class InvalidWindowingFn<W extends BoundedWindow> extends WindowingFn<java.lang.Object,W>
WindowingFn that represents an invalid pipeline state.WindowingFn.AssignContext, WindowingFn.MergeContext| Constructor and Description |
|---|
InvalidWindowingFn(java.lang.String cause,
WindowingFn<?,W> originalWindowingFn) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<W> |
assignWindows(WindowingFn.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
WindowingFn is invalid. |
WindowingFn<?,W> |
getOriginalWindowingFn()
Returns the original windowingFn that this InvalidWindowingFn replaced.
|
boolean |
isCompatible(WindowingFn<?,?> other)
InvalidWindowingFn objects with the same originalWindowingFn are compatible. |
void |
mergeWindows(WindowingFn.MergeContext c)
Does whatever merging of windows is necessary.
|
Coder<W> |
windowCoder()
Returns the
Coder used for serializing the windows used
by this windowingFn. |
public InvalidWindowingFn(java.lang.String cause,
WindowingFn<?,W> originalWindowingFn)
public java.lang.String getCause()
WindowingFn is invalid.public WindowingFn<?,W> getOriginalWindowingFn()
public java.util.Collection<W> assignWindows(WindowingFn.AssignContext c)
WindowingFnassignWindows in class WindowingFn<java.lang.Object,W extends BoundedWindow>public void mergeWindows(WindowingFn.MergeContext c)
WindowingFn See MergeOverlappingIntervalWindows.mergeWindows(com.google.cloud.dataflow.sdk.transforms.windowing.WindowingFn<?, com.google.cloud.dataflow.sdk.transforms.windowing.IntervalWindow>.MergeContext) for an
example of how to override this method.
mergeWindows in class WindowingFn<java.lang.Object,W extends BoundedWindow>public Coder<W> windowCoder()
WindowingFnCoder used for serializing the windows used
by this windowingFn.windowCoder in class WindowingFn<java.lang.Object,W extends BoundedWindow>public boolean isCompatible(WindowingFn<?,?> other)
InvalidWindowingFn objects with the same originalWindowingFn are compatible.isCompatible in class WindowingFn<java.lang.Object,W extends BoundedWindow>