K - The type of the key.N - The type of the namespace.T - The type of the values that can be folded into the state.ACC - The type of the value in the folding state.@Deprecated public class HeapFoldingState<K,N,T,ACC> extends AbstractHeapState<K,N,ACC,FoldingState<T,ACC>,FoldingStateDescriptor<T,ACC>> implements InternalFoldingState<N,T,ACC>
FoldingState that is
snapshotted into files.currentNamespace, keySerializer, namespaceSerializer, stateDesc, stateTable| Constructor and Description |
|---|
HeapFoldingState(FoldingStateDescriptor<T,ACC> stateDesc,
StateTable<K,N,ACC> stateTable,
TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer)
Deprecated.
Creates a new key/value state for the given hash map of key/value pairs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T value)
Deprecated.
|
ACC |
get()
Deprecated.
|
clear, getSerializedValue, getSerializedValue, getStateTable, setCurrentNamespaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSerializedValue, setCurrentNamespacepublic HeapFoldingState(FoldingStateDescriptor<T,ACC> stateDesc, StateTable<K,N,ACC> 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 ACC get()
get in interface AppendingState<T,ACC>public void add(T value) throws IOException
add in interface AppendingState<T,ACC>IOExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.