Class AbstractVeniceMapper<INPUT_KEY,​INPUT_VALUE>

  • Type Parameters:
    INPUT_KEY - type of the input key read from InputFormat
    INPUT_VALUE - type of the input value read from InputFormat
    All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Mapper<INPUT_KEY,​INPUT_VALUE,​org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.BytesWritable>
    Direct Known Subclasses:
    VeniceAvroMapper, VeniceKafkaInputMapper, VeniceVsonMapper

    public abstract class AbstractVeniceMapper<INPUT_KEY,​INPUT_VALUE>
    extends AbstractInputRecordProcessor<INPUT_KEY,​INPUT_VALUE>
    implements org.apache.hadoop.mapred.Mapper<INPUT_KEY,​INPUT_VALUE,​org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.BytesWritable>
    An abstraction of the mapper that would return serialized, and potentially compressed, Avro key/value pairs.
    • Constructor Detail

      • AbstractVeniceMapper

        public AbstractVeniceMapper()
    • Method Detail

      • map

        public void map​(INPUT_KEY inputKey,
                        INPUT_VALUE inputValue,
                        org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.BytesWritable> output,
                        org.apache.hadoop.mapred.Reporter reporter)
                 throws java.io.IOException
        Specified by:
        map in interface org.apache.hadoop.mapred.Mapper<INPUT_KEY,​INPUT_VALUE,​org.apache.hadoop.io.BytesWritable,​org.apache.hadoop.io.BytesWritable>
        Throws:
        java.io.IOException
      • configure

        public void configure​(org.apache.hadoop.mapred.JobConf job)
        Specified by:
        configure in interface org.apache.hadoop.mapred.JobConfigurable