Package | Description |
---|---|
org.apache.flink.api.common.state | |
org.apache.flink.contrib.streaming.state | |
org.apache.flink.migration.runtime.state | |
org.apache.flink.migration.runtime.state.filesystem | |
org.apache.flink.migration.runtime.state.memory | |
org.apache.flink.runtime.state | |
org.apache.flink.runtime.state.heap |
This package contains the classes for key/value state backends that store the state
on the JVM heap as objects.
|
org.apache.flink.runtime.state.internal |
This package holds the classes of the internal state type hierarchy.
|
org.apache.flink.streaming.api.operators | |
org.apache.flink.streaming.api.windowing.triggers | |
org.apache.flink.streaming.runtime.operators.windowing |
This package contains the operators that implement the various window operations
on data streams.
|
org.apache.flink.table.runtime.aggregate |
Modifier and Type | Class and Description |
---|---|
class |
StateDescriptor<S extends State,T>
Base class for state descriptors.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AggregatingState<IN,OUT>
State interface for aggregating state, based on an
AggregateFunction . |
interface |
AppendingState<IN,OUT>
Base interface for partitioned state that supports adding elements and inspecting the current
state.
|
interface |
FoldingState<T,ACC>
Deprecated.
will be removed in a future version
|
interface |
ListState<T>
State interface for partitioned list state in Operations. |
interface |
MapState<UK,UV>
State interface for partitioned key-value state. |
interface |
MergingState<IN,OUT>
Extension of
AppendingState that allows merging of state. |
interface |
ReducingState<T>
State interface for reducing state. |
interface |
ValueState<T>
State interface for partitioned single-value state. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRocksDBState<K,N,S extends State,SD extends StateDescriptor<S,V>,V>
Base class for
State implementations that store state in a RocksDB database. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRocksDBState<K,N,S extends State,SD extends StateDescriptor<S,V>,V>
Base class for
State implementations that store state in a RocksDB database. |
class |
RocksDBAggregatingState<K,N,T,ACC,R>
An
AggregatingState implementation that stores state in RocksDB. |
class |
RocksDBFoldingState<K,N,T,ACC>
Deprecated.
will be removed in a future version
|
class |
RocksDBListState<K,N,V>
ListState implementation that stores state in RocksDB. |
class |
RocksDBMapState<K,N,UK,UV>
MapState implementation that stores state in RocksDB. |
class |
RocksDBReducingState<K,N,V>
ReducingState implementation that stores state in RocksDB. |
class |
RocksDBValueState<K,N,V>
ValueState implementation that stores state in RocksDB. |
Modifier and Type | Interface and Description |
---|---|
interface |
KvStateSnapshot<K,N,S extends State,SD extends StateDescriptor<S,?>>
Deprecated.
Internal class for savepoint backwards compatibility. Don't use for other purposes.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFsStateSnapshot<K,N,SV,S extends State,SD extends StateDescriptor<S,?>>
Deprecated.
Internal class for savepoint backwards compatibility. Don't use for other purposes.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMemStateSnapshot<K,N,SV,S extends State,SD extends StateDescriptor<S,?>>
Deprecated.
Internal class for savepoint backwards compatibility. Don't use for other purposes.
|
Modifier and Type | Method and Description |
---|---|
<N,S extends State,T> |
KeyedStateBackend.getOrCreateKeyedState(TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,T> stateDescriptor)
Creates or retrieves a keyed state backed by this state backend.
|
<N,S extends State,V> |
AbstractKeyedStateBackend.getOrCreateKeyedState(TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,V> stateDescriptor) |
<N,S extends State> |
KeyedStateBackend.getPartitionedState(N namespace,
TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,?> stateDescriptor)
Creates or retrieves a partitioned state backed by this state backend.
|
<N,S extends State> |
AbstractKeyedStateBackend.getPartitionedState(N namespace,
TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,?> stateDescriptor)
TODO: NOTE: This method does a lot of work caching / retrieving states just to update the namespace.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHeapMergingState<K,N,IN,OUT,SV,S extends State,SD extends StateDescriptor<S,?>>
Base class for
MergingState (InternalMergingState )
that is stored on the heap. |
class |
AbstractHeapState<K,N,SV,S extends State,SD extends StateDescriptor<S,?>>
Base class for partitioned
ListState implementations that are backed by a regular
heap hash map. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHeapMergingState<K,N,IN,OUT,SV,S extends State,SD extends StateDescriptor<S,?>>
Base class for
MergingState (InternalMergingState )
that is stored on the heap. |
class |
AbstractHeapState<K,N,SV,S extends State,SD extends StateDescriptor<S,?>>
Base class for partitioned
ListState implementations that are backed by a regular
heap hash map. |
class |
HeapAggregatingState<K,N,IN,ACC,OUT>
Heap-backed partitioned
ReducingState that is
snapshotted into files. |
class |
HeapFoldingState<K,N,T,ACC>
Deprecated.
will be removed in a future version
|
class |
HeapListState<K,N,V>
Heap-backed partitioned
ListState that is snapshotted
into files. |
class |
HeapMapState<K,N,UK,UV>
Heap-backed partitioned
MapState that is snapshotted into files. |
class |
HeapReducingState<K,N,V>
Heap-backed partitioned
ReducingState that is
snapshotted into files. |
class |
HeapValueState<K,N,V>
Heap-backed partitioned
ValueState that is snapshotted
into files. |
Modifier and Type | Interface and Description |
---|---|
interface |
InternalAggregatingState<N,IN,OUT>
The peer to the
AggregatingState in the internal state type hierarchy. |
interface |
InternalAppendingState<N,IN,OUT>
The peer to the
AppendingState in the internal state type hierarchy. |
interface |
InternalFoldingState<N,T,ACC>
Deprecated.
will be removed in a future version
|
interface |
InternalKvState<N>
The
InternalKvState is the root of the internal state type hierarchy, similar to the
State being the root of the public API state hierarchy. |
interface |
InternalListState<N,T>
The peer to the
ListState in the internal state type hierarchy. |
interface |
InternalMapState<N,UK,UV>
The peer to the
MapState in the internal state type hierarchy. |
interface |
InternalMergingState<N,IN,OUT>
The peer to the
MergingState in the internal state type hierarchy. |
interface |
InternalReducingState<N,T>
The peer to the
ReducingState in the internal state type hierarchy. |
interface |
InternalValueState<N,T>
The peer to the
ValueState in the internal state type hierarchy. |
Modifier and Type | Method and Description |
---|---|
protected <N,S extends State,T> |
AbstractStreamOperator.getOrCreateKeyedState(TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,T> stateDescriptor) |
protected <S extends State,N> |
AbstractStreamOperator.getPartitionedState(N namespace,
TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,?> stateDescriptor)
Creates a partitioned state handle, using the state backend configured for this task.
|
protected <S extends State> |
AbstractStreamOperator.getPartitionedState(StateDescriptor<S,?> stateDescriptor)
Creates a partitioned state handle, using the state backend configured for this task.
|
Modifier and Type | Method and Description |
---|---|
<S extends State> |
Trigger.TriggerContext.getPartitionedState(StateDescriptor<S,?> stateDescriptor)
Retrieves a
State object that can be used to interact with
fault-tolerant state that is scoped to the window and key of the current
trigger invocation. |
Modifier and Type | Method and Description |
---|---|
<S extends State> |
WindowOperator.Context.getPartitionedState(StateDescriptor<S,?> stateDescriptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
ProcessFunctionWithCleanupState.cleanupState(scala.collection.Seq<State> states) |
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.