Class AbstractVeniceRecordReader<INPUT_KEY,INPUT_VALUE>
java.lang.Object
com.linkedin.venice.hadoop.input.recordreader.AbstractVeniceRecordReader<INPUT_KEY,INPUT_VALUE>
- Type Parameters:
INPUT_KEY
- The format of the key as controlled by the input formatINPUT_VALUE
- The format of the value as controlled by the input format
- Direct Known Subclasses:
AbstractAvroRecordReader
,IdentityVeniceRecordReader
,VeniceVsonRecordReader
An abstraction for a record reader that reads records from the configured input into Avro-serialized keys and values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configure
(org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema) Configure the record serializersabstract Object
getAvroKey
(INPUT_KEY inputKey, INPUT_VALUE inputValue) Return an Avro output keyabstract Object
getAvroValue
(INPUT_KEY inputKey, INPUT_VALUE inputValue) return an Avro output valuebyte[]
getKeyBytes
(INPUT_KEY inputKey, INPUT_VALUE inputValue) Return a serialized output keyorg.apache.avro.Schema
byte[]
getValueBytes
(INPUT_KEY inputKey, INPUT_VALUE inputValue) Return a serialized output valueorg.apache.avro.Schema
-
Constructor Details
-
AbstractVeniceRecordReader
public AbstractVeniceRecordReader()
-
-
Method Details
-
getKeySchema
public org.apache.avro.Schema getKeySchema() -
getValueSchema
public org.apache.avro.Schema getValueSchema() -
configure
protected void configure(org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema) Configure the record serializers -
getAvroKey
Return an Avro output key -
getAvroValue
return an Avro output value -
getKeyBytes
Return a serialized output key -
getValueBytes
Return a serialized output value
-