@PublicEvolving public final class FileSourceSplitSerializer extends Object implements SimpleVersionedSerializer<FileSourceSplit>
FileSourceSplit
.Modifier and Type | Field and Description |
---|---|
static FileSourceSplitSerializer |
INSTANCE |
Constructor and Description |
---|
FileSourceSplitSerializer() |
Modifier and Type | Method and Description |
---|---|
FileSourceSplit |
deserialize(int version,
byte[] serialized)
De-serializes the given data (bytes) which was serialized with the scheme of the indicated
version.
|
int |
getVersion()
Gets the version with which this serializer serializes.
|
byte[] |
serialize(FileSourceSplit split)
Serializes the given object.
|
public static final FileSourceSplitSerializer INSTANCE
public int getVersion()
SimpleVersionedSerializer
getVersion
in interface SimpleVersionedSerializer<FileSourceSplit>
getVersion
in interface Versioned
public byte[] serialize(FileSourceSplit split) throws IOException
SimpleVersionedSerializer
SimpleVersionedSerializer.getVersion()
.serialize
in interface SimpleVersionedSerializer<FileSourceSplit>
split
- The object to serialize.IOException
- Thrown, if the serialization fails.public FileSourceSplit deserialize(int version, byte[] serialized) throws IOException
SimpleVersionedSerializer
deserialize
in interface SimpleVersionedSerializer<FileSourceSplit>
version
- The version in which the data was serializedserialized
- The serialized dataIOException
- Thrown, if the deserialization fails.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.