Class IdentityVeniceRecordReader
- java.lang.Object
-
- com.linkedin.venice.hadoop.input.recordreader.AbstractVeniceRecordReader<java.nio.ByteBuffer,java.nio.ByteBuffer>
-
- com.linkedin.venice.hadoop.input.recordreader.avro.IdentityVeniceRecordReader
-
public class IdentityVeniceRecordReader extends AbstractVeniceRecordReader<java.nio.ByteBuffer,java.nio.ByteBuffer>
A record reader that returns the input key and value as is.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getAvroKey(java.nio.ByteBuffer keyBytes, java.nio.ByteBuffer valueBytes)
Return an Avro output keyjava.lang.Object
getAvroValue(java.nio.ByteBuffer keyBytes, java.nio.ByteBuffer valueBytes)
return an Avro output valuestatic IdentityVeniceRecordReader
getInstance()
byte[]
getKeyBytes(java.nio.ByteBuffer keyBuffer, java.nio.ByteBuffer valueBuffer)
Return a serialized output keybyte[]
getValueBytes(java.nio.ByteBuffer keyBuffer, java.nio.ByteBuffer valueBuffer)
Return a serialized output value-
Methods inherited from class com.linkedin.venice.hadoop.input.recordreader.AbstractVeniceRecordReader
configure, getKeySchema, getValueSchema
-
-
-
-
Method Detail
-
getInstance
public static IdentityVeniceRecordReader getInstance()
-
getAvroKey
public java.lang.Object getAvroKey(java.nio.ByteBuffer keyBytes, java.nio.ByteBuffer valueBytes)
Description copied from class:AbstractVeniceRecordReader
Return an Avro output key- Specified by:
getAvroKey
in classAbstractVeniceRecordReader<java.nio.ByteBuffer,java.nio.ByteBuffer>
-
getKeyBytes
public byte[] getKeyBytes(java.nio.ByteBuffer keyBuffer, java.nio.ByteBuffer valueBuffer)
Description copied from class:AbstractVeniceRecordReader
Return a serialized output key- Overrides:
getKeyBytes
in classAbstractVeniceRecordReader<java.nio.ByteBuffer,java.nio.ByteBuffer>
-
getAvroValue
public java.lang.Object getAvroValue(java.nio.ByteBuffer keyBytes, java.nio.ByteBuffer valueBytes)
Description copied from class:AbstractVeniceRecordReader
return an Avro output value- Specified by:
getAvroValue
in classAbstractVeniceRecordReader<java.nio.ByteBuffer,java.nio.ByteBuffer>
-
getValueBytes
public byte[] getValueBytes(java.nio.ByteBuffer keyBuffer, java.nio.ByteBuffer valueBuffer)
Description copied from class:AbstractVeniceRecordReader
Return a serialized output value- Overrides:
getValueBytes
in classAbstractVeniceRecordReader<java.nio.ByteBuffer,java.nio.ByteBuffer>
-
-