K
- The type of the key.N
- The type of the namespace.SV
- The type of the values in the state.S
- The type of StateSD
- The type of StateDescriptor for the State Spublic abstract class AbstractHeapMergingState<K,N,IN,OUT,SV,S extends State,SD extends StateDescriptor<S,?>> extends AbstractHeapState<K,N,SV,S,SD>
MergingState
that is stored on the heap.currentNamespace, keySerializer, namespaceSerializer, stateDesc, stateTable
Modifier | Constructor and Description |
---|---|
protected |
AbstractHeapMergingState(SD stateDesc,
StateTable<K,N,SV> 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 |
mergeNamespaces(N target,
Collection<N> sources) |
protected abstract SV |
mergeState(SV a,
SV b) |
clear, getSerializedValue, getSerializedValue, getStateTable, setCurrentNamespace
protected AbstractHeapMergingState(SD stateDesc, StateTable<K,N,SV> 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.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.