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