Package org.apache.beam.sdk.values
Class WindowedValues.Builder<T>
java.lang.Object
org.apache.beam.sdk.values.WindowedValues.Builder<T>
- All Implemented Interfaces:
OutputBuilder<T>,WindowedValue<T>
- Enclosing class:
WindowedValues
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()A representation of each of the actual values represented by this compressedWindowedValue, one per window.ThePaneInfoassociated with this WindowedValue.The timestamp of this value in event time.getValue()The primary data for this value.Collection<? extends BoundedWindow> Returns the windows of thisWindowedValue.voidoutput()setPaneInfo(PaneInfo paneInfo) setReceiver(org.apache.beam.sdk.util.WindowedValueReceiver<T> receiver) setRecordId(@Nullable String recordId) setRecordOffset(@Nullable Long recordOffset) setTimestamp(Instant timestamp) setWindow(BoundedWindow window) setWindows(Collection<? extends BoundedWindow> windows) toString()<OtherT> WindowedValues.Builder<OtherT> withValue(OtherT newValue) AWindowedValuewith identical metadata to the current one, but with the provided value.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setValue
- Specified by:
setValuein interfaceOutputBuilder<T>
-
setTimestamp
- Specified by:
setTimestampin interfaceOutputBuilder<T>
-
setWindows
- Specified by:
setWindowsin interfaceOutputBuilder<T>
-
setPaneInfo
- Specified by:
setPaneInfoin interfaceOutputBuilder<T>
-
setWindow
- Specified by:
setWindowin interfaceOutputBuilder<T>
-
setRecordId
- Specified by:
setRecordIdin interfaceOutputBuilder<T>
-
setRecordOffset
- Specified by:
setRecordOffsetin interfaceOutputBuilder<T>
-
setReceiver
public WindowedValues.Builder<T> setReceiver(org.apache.beam.sdk.util.WindowedValueReceiver<T> receiver) -
getValue
Description copied from interface:WindowedValueThe primary data for this value.- Specified by:
getValuein interfaceWindowedValue<T>
-
getTimestamp
Description copied from interface:WindowedValueThe timestamp of this value in event time.- Specified by:
getTimestampin interfaceWindowedValue<T>
-
getWindows
Description copied from interface:WindowedValueReturns the windows of thisWindowedValue.- Specified by:
getWindowsin interfaceWindowedValue<T>
-
getPaneInfo
Description copied from interface:WindowedValueThePaneInfoassociated with this WindowedValue.- Specified by:
getPaneInfoin interfaceWindowedValue<T>
-
getRecordId
- Specified by:
getRecordIdin interfaceWindowedValue<T>
-
getRecordOffset
- Specified by:
getRecordOffsetin interfaceWindowedValue<T>
-
explodeWindows
Description copied from interface:WindowedValueA representation of each of the actual values represented by this compressedWindowedValue, one per window.- Specified by:
explodeWindowsin interfaceWindowedValue<T>
-
withValue
Description copied from interface:WindowedValueAWindowedValuewith identical metadata to the current one, but with the provided value.- Specified by:
withValuein interfaceWindowedValue<T>
-
output
public void output()- Specified by:
outputin interfaceOutputBuilder<T>
-
build
-
toString
-