Class InternalTimerServiceSerializationProxy<K>
- java.lang.Object
-
- org.apache.flink.core.io.VersionedIOReadableWritable
-
- org.apache.flink.core.io.PostVersionedIOReadableWritable
-
- org.apache.flink.streaming.api.operators.InternalTimerServiceSerializationProxy<K>
-
- All Implemented Interfaces:
IOReadableWritable
,Versioned
@Internal public class InternalTimerServiceSerializationProxy<K> extends PostVersionedIOReadableWritable
Serialization proxy for the timer services for a given key-group.
-
-
Field Summary
Fields Modifier and Type Field Description static int
VERSION
-
Constructor Summary
Constructors Constructor Description InternalTimerServiceSerializationProxy(InternalTimeServiceManagerImpl<K> timerServicesManager, int keyGroupIdx)
Constructor to use when writing timer services.InternalTimerServiceSerializationProxy(InternalTimeServiceManagerImpl<K> timerServicesManager, ClassLoader userCodeClassLoader, int keyGroupIdx)
Constructor to use when restoring timer services.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getCompatibleVersions()
Returns the compatible version values.int
getVersion()
Returns the version number of the object.protected void
read(DataInputView in, boolean wasVersioned)
Read from the providedin
.void
write(DataOutputView out)
Writes the object's internal data to the given data output view.-
Methods inherited from class org.apache.flink.core.io.PostVersionedIOReadableWritable
read, read
-
Methods inherited from class org.apache.flink.core.io.VersionedIOReadableWritable
getAdditionalDetailsForIncompatibleVersion, getReadVersion
-
-
-
-
Field Detail
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InternalTimerServiceSerializationProxy
public InternalTimerServiceSerializationProxy(InternalTimeServiceManagerImpl<K> timerServicesManager, ClassLoader userCodeClassLoader, int keyGroupIdx)
Constructor to use when restoring timer services.
-
InternalTimerServiceSerializationProxy
public InternalTimerServiceSerializationProxy(InternalTimeServiceManagerImpl<K> timerServicesManager, int keyGroupIdx)
Constructor to use when writing timer services.
-
-
Method Detail
-
getVersion
public int getVersion()
Description copied from interface:Versioned
Returns the version number of the object. Versions numbers can be used to differentiate evolving classes.
-
getCompatibleVersions
public int[] getCompatibleVersions()
Description copied from class:VersionedIOReadableWritable
Returns the compatible version values.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.- Overrides:
getCompatibleVersions
in classVersionedIOReadableWritable
- Returns:
- an array of integers representing the compatible version values.
-
write
public void write(DataOutputView out) throws IOException
Description copied from interface:IOReadableWritable
Writes the object's internal data to the given data output view.- Specified by:
write
in interfaceIOReadableWritable
- Overrides:
write
in classPostVersionedIOReadableWritable
- Parameters:
out
- the output view to receive the data.- Throws:
IOException
- thrown if any error occurs while writing to the output stream
-
read
protected void read(DataInputView in, boolean wasVersioned) throws IOException
Description copied from class:PostVersionedIOReadableWritable
Read from the providedin
. A flagwasVersioned
can be used to determine whether or not the data to read was previously written by aVersionedIOReadableWritable
.- Specified by:
read
in classPostVersionedIOReadableWritable
- Throws:
IOException
-
-