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 |
---|---|
<T> ValueState<T> |
StateBackend.createValueState(ValueStateDescriptor<T> stateDesc)
Creates and returns a new
ValueState . |
Modifier and Type | Field and Description |
---|---|
protected ValueStateDescriptor<V> |
RocksDBValueState.stateDesc
This holds the name of the state and can create an initial default value for the state.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractRocksDBState.AbstractRocksDBSnapshot<K,N,ValueState<V>,ValueStateDescriptor<V>> |
RocksDBValueState.createRocksDBSnapshot(URI backupUri,
long checkpointId) |
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) |
Constructor and Description |
---|
LazyDbValueState(String kvStateId,
boolean compact,
ShardedConnection cons,
DbBackendConfig conf,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc)
Constructor to initialize the
LazyDbValueState the first time the
job starts. |
LazyDbValueState(String kvStateId,
boolean compact,
ShardedConnection cons,
DbBackendConfig conf,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc,
long nextTs,
long lastCompactedTs)
Initialize the
LazyDbValueState from a snapshot. |
RocksDBValueState(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc,
File dbPath,
String backupPath,
org.rocksdb.Options options)
Creates a new
RocksDBValueState . |
RocksDBValueState(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc,
File dbPath,
String backupPath,
String restorePath,
org.rocksdb.Options options)
Creates a
RocksDBValueState by restoring from a directory. |
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 |
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 . |
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 . |
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 | Method and Description |
---|---|
<N,V> ValueState<V> |
FsStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc) |
Constructor and Description |
---|
FsValueState(FsStateBackend backend,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc)
Creates a new and empty key/value state.
|
FsValueState(FsStateBackend backend,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc,
HashMap<N,Map<K,V>> state)
Creates a new key/value state with the given state contents.
|
Snapshot(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<V> stateSerializer,
ValueStateDescriptor<V> stateDescs,
Path filePath) |
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 |
---|---|
<N,V> ValueState<V> |
MemoryStateBackend.createValueState(TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc) |
Constructor and Description |
---|
MemValueState(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc) |
MemValueState(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
ValueStateDescriptor<V> stateDesc,
HashMap<N,Map<K,V>> state) |
Snapshot(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<V> stateSerializer,
ValueStateDescriptor<V> stateDescs,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
<T> ValueState<T> |
StreamingRuntimeContext.getState(ValueStateDescriptor<T> stateProperties) |
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.