Class OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverableSerializer
- java.lang.Object
-
- org.apache.flink.streaming.api.functions.sink.filesystem.OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverableSerializer
-
- All Implemented Interfaces:
SimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable>
,Versioned
- Enclosing class:
- OutputStreamBasedPartFileWriter<IN,BucketID>
public static class OutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverableSerializer extends Object implements SimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable>
The serializer forOutputStreamBasedPartFileWriter.OutputStreamBasedInProgressFileRecoverable
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InProgressFileWriter.InProgressFileRecoverable
deserialize(int version, byte[] serialized)
De-serializes the given data (bytes) which was serialized with the scheme of the indicated version.SimpleVersionedSerializer<RecoverableWriter.ResumeRecoverable>
getResumeSerializer()
int
getVersion()
Gets the version with which this serializer serializes.byte[]
serialize(InProgressFileWriter.InProgressFileRecoverable inProgressRecoverable)
Serializes the given object.
-
-
-
Method Detail
-
getVersion
public int getVersion()
Description copied from interface:SimpleVersionedSerializer
Gets the version with which this serializer serializes.- Specified by:
getVersion
in interfaceSimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable>
- Specified by:
getVersion
in interfaceVersioned
- Returns:
- The version of the serialization schema.
-
serialize
public byte[] serialize(InProgressFileWriter.InProgressFileRecoverable inProgressRecoverable) throws IOException
Description copied from interface:SimpleVersionedSerializer
Serializes the given object. The serialization is assumed to correspond to the current serialization version (as returned bySimpleVersionedSerializer.getVersion()
.- Specified by:
serialize
in interfaceSimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable>
- Parameters:
inProgressRecoverable
- The object to serialize.- Returns:
- The serialized data (bytes).
- Throws:
IOException
- Thrown, if the serialization fails.
-
deserialize
public InProgressFileWriter.InProgressFileRecoverable deserialize(int version, byte[] serialized) throws IOException
Description copied from interface:SimpleVersionedSerializer
De-serializes the given data (bytes) which was serialized with the scheme of the indicated version.- Specified by:
deserialize
in interfaceSimpleVersionedSerializer<InProgressFileWriter.InProgressFileRecoverable>
- Parameters:
version
- The version in which the data was serializedserialized
- The serialized data- Returns:
- The deserialized object
- Throws:
IOException
- Thrown, if the deserialization fails.
-
getResumeSerializer
public SimpleVersionedSerializer<RecoverableWriter.ResumeRecoverable> getResumeSerializer()
-
-