public class ContinuousHivePendingSplitsCheckpointSerializer extends Object implements SimpleVersionedSerializer<PendingSplitsCheckpoint<HiveSourceSplit>>
ContinuousHivePendingSplitsCheckpoint
.Constructor and Description |
---|
ContinuousHivePendingSplitsCheckpointSerializer(SimpleVersionedSerializer<HiveSourceSplit> splitSerDe) |
Modifier and Type | Method and Description |
---|---|
PendingSplitsCheckpoint<HiveSourceSplit> |
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(PendingSplitsCheckpoint<HiveSourceSplit> checkpoint)
Serializes the given object.
|
public ContinuousHivePendingSplitsCheckpointSerializer(SimpleVersionedSerializer<HiveSourceSplit> splitSerDe)
public int getVersion()
SimpleVersionedSerializer
getVersion
in interface SimpleVersionedSerializer<PendingSplitsCheckpoint<HiveSourceSplit>>
getVersion
in interface Versioned
public byte[] serialize(PendingSplitsCheckpoint<HiveSourceSplit> checkpoint) throws IOException
SimpleVersionedSerializer
SimpleVersionedSerializer.getVersion()
.serialize
in interface SimpleVersionedSerializer<PendingSplitsCheckpoint<HiveSourceSplit>>
checkpoint
- The object to serialize.IOException
- Thrown, if the serialization fails.public PendingSplitsCheckpoint<HiveSourceSplit> deserialize(int version, byte[] serialized) throws IOException
SimpleVersionedSerializer
deserialize
in interface SimpleVersionedSerializer<PendingSplitsCheckpoint<HiveSourceSplit>>
version
- The version in which the data was serializedserialized
- The serialized dataIOException
- Thrown, if the deserialization fails.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.