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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema) Configure the record serializersprotected voidconfigure(org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema, org.apache.avro.Schema rmdSchema) abstract ObjectgetAvroKey(INPUT_KEY inputKey, INPUT_VALUE inputValue) Return an Avro output keyabstract ObjectgetAvroValue(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.Schemabyte[]getRmdBytes(INPUT_KEY inputKey, INPUT_VALUE inputValue) org.apache.avro.Schemaabstract ObjectgetRmdValue(INPUT_KEY inputKey, INPUT_VALUE inputValue) 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() -
getRmdSchema
public org.apache.avro.Schema getRmdSchema() -
configure
protected void configure(org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema) Configure the record serializers -
configure
protected void configure(org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema, org.apache.avro.Schema rmdSchema) -
getAvroKey
Return an Avro output key -
getAvroValue
return an Avro output value -
getRmdValue
-
getKeyBytes
Return a serialized output key -
getValueBytes
Return a serialized output value -
getRmdBytes
-