Package org.apache.beam.sdk.state
@DefaultAnnotation(org.checkerframework.checker.nullness.qual.NonNull.class)
package org.apache.beam.sdk.state
Classes and interfaces for interacting with state.
-
ClassDescriptionBagState<T>A
ReadableState
cell containing a bag of values.CombiningState<InputT,AccumT, OutputT> AReadableState
cell defined by aCombine.CombineFn
, accepting multiple input values, combining them as specified into accumulators, and producing a single output value.GroupingState<InputT,OutputT> AReadableState
cell that combines multiple input values and outputs a single value of a different type.MapState<K,V> AReadableState
cell mapping keys to values.MultimapState<K,V> AReadableState
cell mapping keys to bags of values.AReadableState
cell containing a list of values sorted by timestamp.AState
that can be read viaReadableState.read()
.For internal use only; no backwards-compatibility guarantees.SetState<T>AReadableState
cell containing a set of elements.A state cell, supporting aState.clear()
operation.For internal use only; no backwards-compatibility guarantees.StateContext<W extends BoundedWindow>For internal use only; no backwards-compatibility guarantees.For internal use only; no backwards-compatibility guarantees.A specification of a persistent state cell.StateSpec.Cases<ResultT>Cases for doing a "switch" on the type ofStateSpec
.StateSpec.Cases.WithDefault<ResultT>A base class for a visitor with a default method for cases it is not interested in.Static methods for working withStateSpecs
.TimeDomain
specifies whether an operation is based on timestamps of elements or current "real-world" time as reported while processing.A timer for a specified time domain that can be set to register the desire for further processing at particular time in its specified time domain.Interface for interacting with time.A specification for aTimer
.Static methods for working withTimerSpecs
.ValueState<T>AReadableState
cell containing a single value.For internal use only; no backwards-compatibility guarantees.