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<StateMetaInfoSnapshot> stateMetaInfoSnapshots,
boolean compression) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getAdditionalDetailsForIncompatibleVersion(int readVersion) |
int[] |
getCompatibleVersions()
Returns the compatible version values.
|
TypeSerializerSnapshot<K> |
getKeySerializerSnapshot() |
List<StateMetaInfoSnapshot> |
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<StateMetaInfoSnapshot> stateMetaInfoSnapshots, boolean compression)
public List<StateMetaInfoSnapshot> getStateMetaInfoSnapshots()
public TypeSerializerSnapshot<K> getKeySerializerSnapshot()
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 Optional<String> getAdditionalDetailsForIncompatibleVersion(int readVersion)
getAdditionalDetailsForIncompatibleVersion
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–2024 The Apache Software Foundation. All rights reserved.