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.Returns theValueKindassociated with this WindowedValue.Collection<? extends BoundedWindow> Returns the windows of thisWindowedValue.voidoutput()setCausedByDrain(CausedByDrain causedByDrain) setOpenTelemetryContext(@Nullable Context openTelemetryContext) setPaneInfo(PaneInfo paneInfo) setReceiver(org.apache.beam.sdk.util.WindowedValueReceiver<T> receiver) setRecordId(@Nullable String recordId) setRecordOffset(@Nullable Long recordOffset) setTimestamp(Instant timestamp) setValueKind(ValueKind valueKind) 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>
-
setCausedByDrain
- Specified by:
setCausedByDrainin interfaceOutputBuilder<T>
-
setOpenTelemetryContext
- Specified by:
setOpenTelemetryContextin interfaceOutputBuilder<T>
-
setValueKind
- Specified by:
setValueKindin 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>
-
getOpenTelemetryContext
- Specified by:
getOpenTelemetryContextin 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>
-
causedByDrain
- Specified by:
causedByDrainin interfaceWindowedValue<T>
-
getValueKind
Description copied from interface:WindowedValueReturns theValueKindassociated with this WindowedValue.- Specified by:
getValueKindin 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
-