Package org.apache.beam.sdk.values
Class FailsafeValueInSingleWindow<T,ErrorT>
- java.lang.Object
-
- org.apache.beam.sdk.values.FailsafeValueInSingleWindow<T,ErrorT>
-
- Type Parameters:
T
- the type of the value
@Internal public abstract class FailsafeValueInSingleWindow<T,ErrorT> extends java.lang.Object
An immutable tuple of value, timestamp, window, and pane.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FailsafeValueInSingleWindow.Coder<T,ErrorT>
A coder forFailsafeValueInSingleWindow
.
-
Constructor Summary
Constructors Constructor Description FailsafeValueInSingleWindow()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ErrorT
getFailsafeValue()
Returns the failsafe value of thisFailsafeValueInSingleWindow
.abstract PaneInfo
getPane()
Returns the pane of thisFailsafeValueInSingleWindow
in its window.abstract org.joda.time.Instant
getTimestamp()
Returns the timestamp of thisFailsafeValueInSingleWindow
.abstract T
getValue()
Returns the value of thisFailsafeValueInSingleWindow
.abstract BoundedWindow
getWindow()
Returns the window of thisFailsafeValueInSingleWindow
.static <T,ErrorT>
FailsafeValueInSingleWindow<T,ErrorT>of(T value, org.joda.time.Instant timestamp, BoundedWindow window, PaneInfo paneInfo, ErrorT failsafeValue)
-
-
-
Method Detail
-
getValue
public abstract T getValue()
Returns the value of thisFailsafeValueInSingleWindow
.
-
getTimestamp
public abstract org.joda.time.Instant getTimestamp()
Returns the timestamp of thisFailsafeValueInSingleWindow
.
-
getWindow
public abstract BoundedWindow getWindow()
Returns the window of thisFailsafeValueInSingleWindow
.
-
getPane
public abstract PaneInfo getPane()
Returns the pane of thisFailsafeValueInSingleWindow
in its window.
-
getFailsafeValue
public abstract ErrorT getFailsafeValue()
Returns the failsafe value of thisFailsafeValueInSingleWindow
.
-
of
public static <T,ErrorT> FailsafeValueInSingleWindow<T,ErrorT> of(T value, org.joda.time.Instant timestamp, BoundedWindow window, PaneInfo paneInfo, ErrorT failsafeValue)
-
-