K - type of key.N - type of namespace.S - type of state.@Deprecated public abstract class AbstractMigrationRestoreStrategy<K,N,S> extends Object implements MigrationRestoreSnapshot<K,N,S>
| Modifier and Type | Field and Description |
|---|---|
protected TypeSerializer<K> |
keySerializer
Deprecated.
Key Serializer
|
protected TypeSerializer<N> |
namespaceSerializer
Deprecated.
Namespace Serializer
|
protected TypeSerializer<S> |
stateSerializer
Deprecated.
Serializer for the state value
|
| Constructor and Description |
|---|
AbstractMigrationRestoreStrategy(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<S> stateSerializer)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
StateTable<K,N,S> |
deserialize(String stateName,
HeapKeyedStateBackend<K> stateBackend)
Deprecated.
|
protected abstract DataInputView |
openDataInputView()
Deprecated.
Different state handles require different code to end up with a
DataInputView. |
protected final TypeSerializer<K> keySerializer
protected final TypeSerializer<N> namespaceSerializer
protected final TypeSerializer<S> stateSerializer
public AbstractMigrationRestoreStrategy(TypeSerializer<K> keySerializer, TypeSerializer<N> namespaceSerializer, TypeSerializer<S> stateSerializer)
public StateTable<K,N,S> deserialize(String stateName, HeapKeyedStateBackend<K> stateBackend) throws IOException
deserialize in interface MigrationRestoreSnapshot<K,N,S>IOExceptionprotected abstract DataInputView openDataInputView() throws IOException
DataInputView.IOExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.