public class KeyedBackendSerializationProxy<K> extends VersionedIOReadableWritable
Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
Constructor and Description |
---|
KeyedBackendSerializationProxy(ClassLoader userCodeClassLoader) |
KeyedBackendSerializationProxy(TypeSerializer<K> keySerializer,
List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?,?>> stateMetaInfoSnapshots,
boolean compression) |
Modifier and Type | Method and Description |
---|---|
int[] |
getCompatibleVersions()
Returns the compatible version values.
|
TypeSerializer<K> |
getKeySerializer() |
TypeSerializerConfigSnapshot |
getKeySerializerConfigSnapshot() |
List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?,?>> |
getStateMetaInfoSnapshots() |
int |
getVersion()
Returns the version number of the object.
|
boolean |
isUsingKeyGroupCompression() |
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.
|
getReadVersion
public static final int VERSION
public KeyedBackendSerializationProxy(ClassLoader userCodeClassLoader)
public KeyedBackendSerializationProxy(TypeSerializer<K> keySerializer, List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?,?>> stateMetaInfoSnapshots, boolean compression)
public List<RegisteredKeyedBackendStateMetaInfo.Snapshot<?,?>> getStateMetaInfoSnapshots()
public TypeSerializer<K> getKeySerializer()
public TypeSerializerConfigSnapshot getKeySerializerConfigSnapshot()
public boolean isUsingKeyGroupCompression()
public int getVersion()
Versioned
public int[] getCompatibleVersions()
VersionedIOReadableWritable
By default, the base implementation recognizes only the current version (identified by Versioned.getVersion()
)
as compatible. This method can be used as a hook and may be overridden to identify more compatible versions.
getCompatibleVersions
in class VersionedIOReadableWritable
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–2018 The Apache Software Foundation. All rights reserved.