public class KeyedBackendSerializationProxy extends VersionedIOReadableWritable
Modifier and Type | Class and Description |
---|---|
static class |
KeyedBackendSerializationProxy.StateMetaInfo<N,S>
This is the serialization proxy for
RegisteredBackendStateMetaInfo for a single registered state in a
keyed backend. |
Constructor and Description |
---|
KeyedBackendSerializationProxy(ClassLoader userCodeClassLoader) |
KeyedBackendSerializationProxy(TypeSerializer<?> keySerializer,
List<KeyedBackendSerializationProxy.StateMetaInfo<?,?>> namedStateSerializationProxies) |
Modifier and Type | Method and Description |
---|---|
TypeSerializerSerializationProxy<?> |
getKeySerializerProxy() |
List<KeyedBackendSerializationProxy.StateMetaInfo<?,?>> |
getNamedStateSerializationProxies() |
int |
getVersion()
Returns the version number of the object.
|
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
isCompatibleVersion, resolveVersionRead
public KeyedBackendSerializationProxy(ClassLoader userCodeClassLoader)
public KeyedBackendSerializationProxy(TypeSerializer<?> keySerializer, List<KeyedBackendSerializationProxy.StateMetaInfo<?,?>> namedStateSerializationProxies)
public List<KeyedBackendSerializationProxy.StateMetaInfo<?,?>> getNamedStateSerializationProxies()
public TypeSerializerSerializationProxy<?> getKeySerializerProxy()
public int getVersion()
Versioned
public void write(DataOutputView out) throws IOException
IOReadableWritable
write
in interface IOReadableWritable
write
in class VersionedIOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
read
in interface IOReadableWritable
read
in class VersionedIOReadableWritable
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streamCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.