Package org.apache.beam.sdk.values
Class ValueInSingleWindow<T>
java.lang.Object
org.apache.beam.sdk.values.ValueInSingleWindow<T>
- Type Parameters:
T- the type of the value
An immutable tuple of value, timestamp, window, and pane.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWorkaround for autovalue code generation, which does not allow type variables to be instantiated with nullable actual parameters.abstract PaneInfoReturns the pane of thisValueInSingleWindowin its window.abstract InstantReturns the timestamp of thisValueInSingleWindow.getValue()Returns the value of thisValueInSingleWindow.abstract BoundedWindowReturns the window of thisValueInSingleWindow.static <T> ValueInSingleWindow<T> of(T value, Instant timestamp, BoundedWindow window, PaneInfo paneInfo) static <T> ValueInSingleWindow<T> of(T value, Instant timestamp, BoundedWindow window, PaneInfo paneInfo, @Nullable String currentRecordId, @Nullable Long currentRecordOffset)
-
Constructor Details
-
ValueInSingleWindow
public ValueInSingleWindow()
-
-
Method Details
-
getValue
Returns the value of thisValueInSingleWindow. -
getNullableValue
Workaround for autovalue code generation, which does not allow type variables to be instantiated with nullable actual parameters. -
getTimestamp
Returns the timestamp of thisValueInSingleWindow. -
getWindow
Returns the window of thisValueInSingleWindow. -
getPaneInfo
Returns the pane of thisValueInSingleWindowin its window. -
getCurrentRecordId
-
getCurrentRecordOffset
-
of
public static <T> ValueInSingleWindow<T> of(T value, Instant timestamp, BoundedWindow window, PaneInfo paneInfo, @Nullable String currentRecordId, @Nullable Long currentRecordOffset) -
of
public static <T> ValueInSingleWindow<T> of(T value, Instant timestamp, BoundedWindow window, PaneInfo paneInfo)
-