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
ReadableStatecell containing a bag of values.CombiningState<InputT,AccumT, OutputT> AReadableStatecell defined by aCombine.CombineFn, accepting multiple input values, combining them as specified into accumulators, and producing a single output value.GroupingState<InputT,OutputT> AReadableStatecell that combines multiple input values and outputs a single value of a different type.MapState<K,V> AReadableStatecell mapping keys to values.MultimapState<K,V> AReadableStatecell mapping keys to bags of values.AReadableStatecell containing a list of values sorted by timestamp.AStatethat can be read viaReadableState.read().For internal use only; no backwards-compatibility guarantees.SetState<T>AReadableStatecell 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.TimeDomainspecifies 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>AReadableStatecell containing a single value.For internal use only; no backwards-compatibility guarantees.