public static interface PAssert.SingletonAssert<T>
Modifier and Type | Method and Description |
---|---|
PAssert.SingletonAssert<T> |
inEarlyPane(BoundedWindow window)
Creates a new
PAssert.SingletonAssert like this one, but with the assertion restricted to
only run on the provided window, running the checker only on early panes for each key. |
PAssert.SingletonAssert<T> |
inFinalPane(BoundedWindow window)
Creates a new
PAssert.SingletonAssert like this one, but with the assertion restricted to
only run on the provided window, running the checker only on the final pane for each key. |
PAssert.SingletonAssert<T> |
inLatePane(BoundedWindow window)
Creates a new
PAssert.SingletonAssert with the assertion restricted to only run on the
provided window, running the checker only on late panes for each key. |
PAssert.SingletonAssert<T> |
inOnlyPane(BoundedWindow window)
Creates a new
PAssert.SingletonAssert like this one, but with the assertion restricted to
only run on the provided window. |
PAssert.SingletonAssert<T> |
inOnTimePane(BoundedWindow window)
Creates a new
PAssert.SingletonAssert like this one, but with the assertion restricted to
only run on the provided window, running the checker only on the on-time pane for each key. |
PAssert.SingletonAssert<T> |
inWindow(BoundedWindow window)
Creates a new
PAssert.SingletonAssert like this one, but with the assertion restricted to
only run on the provided window. |
PAssert.SingletonAssert<T> |
isEqualTo(T expected)
Asserts that the value in question is equal to the provided value, according to
Object.equals(java.lang.Object) . |
PAssert.SingletonAssert<T> |
notEqualTo(T notExpected)
Asserts that the value in question is not equal to the provided value, according to
Object.equals(java.lang.Object) . |
PAssert.SingletonAssert<T> |
satisfies(SerializableFunction<T,java.lang.Void> checkerFn)
Applies the provided checking function (presumably containing assertions) to the value in
question.
|
PAssert.SingletonAssert<T> inWindow(BoundedWindow window)
PAssert.SingletonAssert
like this one, but with the assertion restricted to
only run on the provided window.
The assertion will concatenate all panes present in the provided window if the Trigger
produces multiple panes. If the windowing strategy accumulates fired panes and
triggers fire multple times, consider using instead inFinalPane(BoundedWindow)
or
inOnTimePane(BoundedWindow)
.
PAssert.SingletonAssert
like this one but with the assertion only applied to
the specified window.PAssert.SingletonAssert<T> inOnlyPane(BoundedWindow window)
PAssert.SingletonAssert
like this one, but with the assertion restricted to
only run on the provided window.
The assertion will expect outputs to be produced to the provided window exactly once. If
the upstream Trigger
may produce output multiple times, consider instead using inFinalPane(BoundedWindow)
or inOnTimePane(BoundedWindow)
.
PAssert.SingletonAssert
like this one but with the assertion only applied to
the specified window.PAssert.SingletonAssert<T> inFinalPane(BoundedWindow window)
PAssert.SingletonAssert
like this one, but with the assertion restricted to
only run on the provided window, running the checker only on the final pane for each key.
If the input WindowingStrategy
does not always produce final panes, the assertion
may be executed over an empty input even if the trigger has fired previously. To ensure that
a final pane is always produced, set the Window.ClosingBehavior
of the windowing strategy
(via Window.withAllowedLateness(Duration, ClosingBehavior)
setting Window.ClosingBehavior
to Window.ClosingBehavior.FIRE_ALWAYS
).
PAssert.SingletonAssert
like this one but with the assertion only applied to
the specified window.PAssert.SingletonAssert<T> inOnTimePane(BoundedWindow window)
PAssert.SingletonAssert
like this one, but with the assertion restricted to
only run on the provided window, running the checker only on the on-time pane for each key.PAssert.SingletonAssert
like this one but with the assertion only applied to
the specified window.PAssert.SingletonAssert<T> inEarlyPane(BoundedWindow window)
PAssert.SingletonAssert
like this one, but with the assertion restricted to
only run on the provided window, running the checker only on early panes for each key.PAssert.SingletonAssert
like this one but with the assertion only applied to
the specified window.PAssert.SingletonAssert<T> inLatePane(BoundedWindow window)
PAssert.SingletonAssert
with the assertion restricted to only run on the
provided window, running the checker only on late panes for each key.PAssert.SingletonAssert
like this one but with the assertion only applied to
the specified window.PAssert.SingletonAssert<T> isEqualTo(T expected)
Object.equals(java.lang.Object)
.PAssert.SingletonAssert
builder for further assertionsPAssert.SingletonAssert<T> notEqualTo(T notExpected)
Object.equals(java.lang.Object)
.PAssert.SingletonAssert
builder for further assertionsPAssert.SingletonAssert<T> satisfies(SerializableFunction<T,java.lang.Void> checkerFn)
PAssert.SingletonAssert
builder for further assertions