public static class OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverableSerializer extends Object implements SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable>
OutputStreamBasedPartFileWriter.OutputStreamBasedPendingFileRecoverable
.Modifier and Type | Method and Description |
---|---|
InProgressFileWriter.PendingFileRecoverable |
deserialize(int version,
byte[] serialized)
De-serializes the given data (bytes) which was serialized with the scheme of the indicated
version.
|
SimpleVersionedSerializer<RecoverableWriter.CommitRecoverable> |
getCommitSerializer() |
int |
getVersion()
Gets the version with which this serializer serializes.
|
byte[] |
serialize(InProgressFileWriter.PendingFileRecoverable pendingFileRecoverable)
Serializes the given object.
|
public int getVersion()
SimpleVersionedSerializer
getVersion
in interface SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable>
getVersion
in interface Versioned
public byte[] serialize(InProgressFileWriter.PendingFileRecoverable pendingFileRecoverable) throws IOException
SimpleVersionedSerializer
SimpleVersionedSerializer.getVersion()
.serialize
in interface SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable>
pendingFileRecoverable
- The object to serialize.IOException
- Thrown, if the serialization fails.public InProgressFileWriter.PendingFileRecoverable deserialize(int version, byte[] serialized) throws IOException
SimpleVersionedSerializer
deserialize
in interface SimpleVersionedSerializer<InProgressFileWriter.PendingFileRecoverable>
version
- The version in which the data was serializedserialized
- The serialized dataIOException
- Thrown, if the deserialization fails.public SimpleVersionedSerializer<RecoverableWriter.CommitRecoverable> getCommitSerializer()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.