Package | Description |
---|---|
org.apache.flink.api.common.functions | |
org.apache.flink.api.common.functions.util | |
org.apache.flink.api.common.state | |
org.apache.flink.contrib.streaming.state | |
org.apache.flink.runtime.state | |
org.apache.flink.runtime.state.filesystem | |
org.apache.flink.runtime.state.memory | |
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.
|
Modifier and Type | Method and Description |
---|---|
<T> ValueState<T> |
RuntimeContext.getState(ValueStateDescriptor<T> stateProperties)
Gets a handle to the system's key/value state.
|
Modifier and Type | Method and Description |
---|---|
<T> ValueState<T> |
AbstractRuntimeUDFContext.getState(ValueStateDescriptor<T> stateProperties) |
Modifier and Type | Method and Description |
---|---|
ValueState<T> |
ValueStateDescriptor.bind(StateBackend stateBackend) |
<T> ValueState<T> |
StateBackend.createValueState(ValueStateDescriptor<T> stateDesc)
Creates and returns a new
ValueState . |
Modifier and Type | Class and Description |
---|---|
class |
LazyDbValueState<K,N,V>
Lazily fetched
KvState using a SQL backend. |
class |
RocksDBValueState<K,N,V>
ValueState implementation that stores state in RocksDB. |
Modifier and Type | Method and Description |
---|---|
protected <N,T> ValueState<T> |
DbStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<T> stateDesc) |
protected <N,T> ValueState<T> |
RocksDBStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<T> stateDesc) |
Modifier and Type | Method and Description |
---|---|
protected AbstractRocksDBState.AbstractRocksDBSnapshot<K,N,ValueState<V>,ValueStateDescriptor<V>> |
RocksDBValueState.createRocksDBSnapshot(URI backupUri,
long checkpointId) |
Modifier and Type | Class and Description |
---|---|
class |
GenericFoldingState<K,N,T,ACC,Backend extends AbstractStateBackend,W extends ValueState<ACC> & KvState<K,N,ValueState<ACC>,ValueStateDescriptor<ACC>,Backend>>
Generic implementation of
FoldingState based on a wrapped ValueState . |
class |
GenericFoldingState<K,N,T,ACC,Backend extends AbstractStateBackend,W extends ValueState<ACC> & KvState<K,N,ValueState<ACC>,ValueStateDescriptor<ACC>,Backend>>
Generic implementation of
FoldingState based on a wrapped ValueState . |
class |
GenericListState<K,N,T,Backend extends AbstractStateBackend,W extends ValueState<ArrayList<T>> & KvState<K,N,ValueState<ArrayList<T>>,ValueStateDescriptor<ArrayList<T>>,Backend>>
Generic implementation of
ListState based on a wrapped ValueState . |
class |
GenericListState<K,N,T,Backend extends AbstractStateBackend,W extends ValueState<ArrayList<T>> & KvState<K,N,ValueState<ArrayList<T>>,ValueStateDescriptor<ArrayList<T>>,Backend>>
Generic implementation of
ListState based on a wrapped ValueState . |
class |
GenericReducingState<K,N,T,Backend extends AbstractStateBackend,W extends ValueState<T> & KvState<K,N,ValueState<T>,ValueStateDescriptor<T>,Backend>>
Generic implementation of
ReducingState based on a wrapped ValueState . |
class |
GenericReducingState<K,N,T,Backend extends AbstractStateBackend,W extends ValueState<T> & KvState<K,N,ValueState<T>,ValueStateDescriptor<T>,Backend>>
Generic implementation of
ReducingState based on a wrapped ValueState . |
Modifier and Type | Method and Description |
---|---|
protected abstract <N,T> ValueState<T> |
AbstractStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<T> stateDesc)
Creates and returns a new
ValueState . |
Constructor and Description |
---|
GenericFoldingState(ValueState<ACC> wrappedState,
FoldFunction<T,ACC> foldFunction)
Creates a new
FoldingState that wraps the given ValueState . |
GenericListState(ValueState<ArrayList<T>> wrappedState)
Creates a new
ListState that wraps the given ValueState . |
GenericReducingState(ValueState<T> wrappedState,
ReduceFunction<T> reduceFunction)
Creates a new
ReducingState that wraps the given ValueState . |
Modifier and Type | Class and Description |
---|---|
class |
FsValueState<K,N,V>
Heap-backed partitioned
ValueState that is snapshotted
into files. |
Modifier and Type | Method and Description |
---|---|
<N,V> ValueState<V> |
FsStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc) |
Modifier and Type | Method and Description |
---|---|
KvState<K,N,ValueState<V>,ValueStateDescriptor<V>,FsStateBackend> |
FsValueState.Snapshot.createFsState(FsStateBackend backend,
HashMap<N,Map<K,V>> stateMap) |
KvStateSnapshot<K,N,ValueState<V>,ValueStateDescriptor<V>,FsStateBackend> |
FsValueState.createHeapSnapshot(Path filePath) |
Modifier and Type | Class and Description |
---|---|
class |
MemValueState<K,N,V>
Heap-backed key/value state that is snapshotted into a serialized memory copy.
|
Modifier and Type | Method and Description |
---|---|
<N,V> ValueState<V> |
MemoryStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc) |
Modifier and Type | Method and Description |
---|---|
KvStateSnapshot<K,N,ValueState<V>,ValueStateDescriptor<V>,MemoryStateBackend> |
MemValueState.createHeapSnapshot(byte[] bytes) |
KvState<K,N,ValueState<V>,ValueStateDescriptor<V>,MemoryStateBackend> |
MemValueState.Snapshot.createMemState(HashMap<N,Map<K,V>> stateMap) |
Modifier and Type | Method and Description |
---|---|
<T> ValueState<T> |
StreamingRuntimeContext.getState(ValueStateDescriptor<T> stateProperties) |
Modifier and Type | Method and Description |
---|---|
<S extends Serializable> |
Trigger.TriggerContext.getKeyValueState(String name,
Class<S> stateType,
S defaultState)
Deprecated.
|
<S extends Serializable> |
Trigger.TriggerContext.getKeyValueState(String name,
TypeInformation<S> stateType,
S defaultState)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<S extends Serializable> |
WindowOperator.Context.getKeyValueState(String name,
Class<S> stateType,
S defaultState) |
<S extends Serializable> |
NonKeyedWindowOperator.Context.getKeyValueState(String name,
Class<S> stateType,
S defaultState) |
<S extends Serializable> |
WindowOperator.Context.getKeyValueState(String name,
TypeInformation<S> stateType,
S defaultState) |
<S extends Serializable> |
NonKeyedWindowOperator.Context.getKeyValueState(String name,
TypeInformation<S> stateType,
S defaultState) |
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.