Class AbstractAvroRecordReader<INPUT_KEY,INPUT_VALUE>

java.lang.Object
com.linkedin.venice.hadoop.input.recordreader.AbstractVeniceRecordReader<INPUT_KEY,INPUT_VALUE>
com.linkedin.venice.hadoop.input.recordreader.avro.AbstractAvroRecordReader<INPUT_KEY,INPUT_VALUE>
Type Parameters:
INPUT_KEY - The format of the key as controlled by the input format
INPUT_VALUE - The format of the value as controlled by the input format
Direct Known Subclasses:
VeniceAvroRecordReader

public abstract class AbstractAvroRecordReader<INPUT_KEY,INPUT_VALUE> extends AbstractVeniceRecordReader<INPUT_KEY,INPUT_VALUE>
An abstraction for a record reader that reads records from input into Avro-serialized keys and values.
  • Constructor Details

    • AbstractAvroRecordReader

      public AbstractAvroRecordReader(org.apache.avro.Schema dataSchema, String keyFieldStr, String valueFieldStr, String rmdFieldStr, ETLValueSchemaTransformation etlValueSchemaTransformation, org.apache.avro.Schema updateSchema)
      This constructor is used when data is read from HDFS.
      Parameters:
      dataSchema - Schema of the avro file
      keyFieldStr - Field name of the key field
      valueFieldStr - Field name of the value field
      etlValueSchemaTransformation - The type of transformation that was applied to this schema during ETL. When source data set is not an ETL job, use NONE.
    • AbstractAvroRecordReader

      public AbstractAvroRecordReader(org.apache.avro.Schema dataSchema, String keyFieldStr, String valueFieldStr, String rmdFieldStr, ETLValueSchemaTransformation etlValueSchemaTransformation, org.apache.avro.Schema updateSchema, org.apache.avro.Schema writerValueSchema, org.apache.avro.Schema writerRmdSchema)
      Parameters:
      writerValueSchema - when non-null, input value records are projected down to this registered writer (target) value schema via VeniceSchemaProjector and serialized against it.
      writerRmdSchema - when non-null, input RMD records are projected down to this writer RMD schema (the RMD schema generated against writerValueSchema) in lockstep with the value, and serialized against it.
  • Method Details