Package org.apache.beam.sdk.state
Interface WatermarkHoldState
- All Superinterfaces:
GroupingState<Instant,,Instant> ReadableState<Instant>,State
For internal use only; no backwards-compatibility guarantees.
A State accepting and aggregating timestamps according to a TimestampCombiner,
holding the output watermark to the resulting timestamp.
-
Method Summary
Modifier and TypeMethodDescriptionReturn theTimestampCombinerwhich will be used to determine a watermark hold time given an element timestamp, and to combine watermarks from windows which are about to be merged.Indicate that the value will be read later.default voidFor internal use only; no backwards-compatibility guarantees.Methods inherited from interface org.apache.beam.sdk.state.GroupingState
add, isEmptyMethods inherited from interface org.apache.beam.sdk.state.ReadableState
read
-
Method Details
-
getTimestampCombiner
TimestampCombiner getTimestampCombiner()Return theTimestampCombinerwhich will be used to determine a watermark hold time given an element timestamp, and to combine watermarks from windows which are about to be merged. -
readLater
WatermarkHoldState readLater()Description copied from interface:ReadableStateIndicate that the value will be read later.This allows an implementation to start an asynchronous prefetch or to include this state in the next batch of reads.
- Specified by:
readLaterin interfaceGroupingState<Instant,Instant> - Specified by:
readLaterin interfaceReadableState<Instant>- Returns:
- this for convenient chaining
-
setKnownEmpty
For internal use only; no backwards-compatibility guarantees.Permit marking the state as empty locally, without necessarily clearing it in the backend.
This may be used by runners to optimize out unnecessary state reads.
-