Class IdentityRecordDeserializer
java.lang.Object
com.linkedin.venice.serialization.IdentityRecordDeserializer
- All Implemented Interfaces:
RecordDeserializer<ByteBuffer>
This class is used as an identity function to return the same bytes that were passed in the input to the output. It
will reuse the inputs as much as possible.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(byte[] bytes) deserialize
(ByteBuffer byteBuffer) deserialize
(ByteBuffer reuse, byte[] bytes) deserialize
(ByteBuffer reuse, InputStream in, org.apache.avro.io.BinaryDecoder reusedDecoder) deserialize
(ByteBuffer reuse, ByteBuffer byteBuffer, org.apache.avro.io.BinaryDecoder reusedDecoder) deserialize
(ByteBuffer reuse, org.apache.avro.io.BinaryDecoder binaryDecoder) deserialize
(org.apache.avro.io.BinaryDecoder binaryDecoder) deserializeObjects
(byte[] bytes) deserializeObjects
(org.apache.avro.io.BinaryDecoder binaryDecoder) static IdentityRecordDeserializer
-
Method Details
-
getInstance
-
deserialize
- Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserialize
- Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserialize
public ByteBuffer deserialize(ByteBuffer reuse, ByteBuffer byteBuffer, org.apache.avro.io.BinaryDecoder reusedDecoder) throws VeniceSerializationException - Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserialize
- Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserialize
public ByteBuffer deserialize(org.apache.avro.io.BinaryDecoder binaryDecoder) throws VeniceSerializationException - Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserialize
public ByteBuffer deserialize(ByteBuffer reuse, org.apache.avro.io.BinaryDecoder binaryDecoder) throws VeniceSerializationException - Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserialize
public ByteBuffer deserialize(ByteBuffer reuse, InputStream in, org.apache.avro.io.BinaryDecoder reusedDecoder) throws VeniceSerializationException - Specified by:
deserialize
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserializeObjects
- Specified by:
deserializeObjects
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-
deserializeObjects
public List<ByteBuffer> deserializeObjects(org.apache.avro.io.BinaryDecoder binaryDecoder) throws VeniceSerializationException - Specified by:
deserializeObjects
in interfaceRecordDeserializer<ByteBuffer>
- Throws:
VeniceSerializationException
-