K - The type of the key.N - The type of the namespace.V - The type of the value.public class HeapValueState<K,N,V> extends AbstractHeapState<K,N,V,ValueState<V>,ValueStateDescriptor<V>> implements InternalValueState<N,V>
ValueState that is snapshotted
into files.currentNamespace, keySerializer, namespaceSerializer, stateDesc, stateTable| Constructor and Description |
|---|
HeapValueState(ValueStateDescriptor<V> stateDesc,
StateTable<K,N,V> stateTable,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer)
Creates a new key/value state for the given hash map of key/value pairs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
update(V value) |
V |
value() |
clear, getSerializedValue, getSerializedValue, getStateTable, setCurrentNamespaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSerializedValue, setCurrentNamespacepublic HeapValueState(ValueStateDescriptor<V> stateDesc, StateTable<K,N,V> stateTable, TypeSerializer<K> keySerializer, TypeSerializer<N> namespaceSerializer)
stateDesc - The state identifier for the state. This contains name
and can create a default state value.stateTable - The state tab;e to use in this kev/value state. May contain initial state.public V value()
value in interface ValueState<V>public void update(V value)
update in interface ValueState<V>Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.