public class OperatorBackendSerializationProxy extends VersionedIOReadableWritable
Modifier and Type | Field and Description |
---|---|
static int |
VERSION |
Constructor and Description |
---|
OperatorBackendSerializationProxy(ClassLoader userCodeClassLoader) |
OperatorBackendSerializationProxy(List<StateMetaInfoSnapshot> operatorStateMetaInfoSnapshots,
List<StateMetaInfoSnapshot> broadcastStateMetaInfoSnapshots,
boolean compression) |
Modifier and Type | Method and Description |
---|---|
List<StateMetaInfoSnapshot> |
getBroadcastStateMetaInfoSnapshots() |
int[] |
getCompatibleVersions()
Returns the compatible version values.
|
List<StateMetaInfoSnapshot> |
getOperatorStateMetaInfoSnapshots() |
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.
|
getAdditionalDetailsForIncompatibleVersion, getReadVersion
public static final int VERSION
public OperatorBackendSerializationProxy(ClassLoader userCodeClassLoader)
public OperatorBackendSerializationProxy(List<StateMetaInfoSnapshot> operatorStateMetaInfoSnapshots, List<StateMetaInfoSnapshot> broadcastStateMetaInfoSnapshots, boolean compression)
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 streampublic List<StateMetaInfoSnapshot> getOperatorStateMetaInfoSnapshots()
public List<StateMetaInfoSnapshot> getBroadcastStateMetaInfoSnapshots()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.