org.apache.hadoop.hive.ql.io.avro
Class AvroGenericRecordReader

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.avro.AvroGenericRecordReader

public class AvroGenericRecordReader
extends Object

RecordReader optimized against Avro GenericRecords that returns to record as the value of the k-v pair, as Hive requires.


Field Summary
protected  JobConf jobConf
           
 
Constructor Summary
AvroGenericRecordReader(JobConf job, FileSplit split, Reporter reporter)
           
 
Method Summary
 void close()
           
 void configure(JobConf jobConf)
           
 NullWritable createKey()
           
 AvroGenericRecordWritable createValue()
           
 long getPos()
           
 float getProgress()
           
 boolean next(NullWritable nullWritable, AvroGenericRecordWritable record)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jobConf

protected JobConf jobConf
Constructor Detail

AvroGenericRecordReader

public AvroGenericRecordReader(JobConf job,
                               FileSplit split,
                               Reporter reporter)
                        throws IOException
Throws:
IOException
Method Detail

next

public boolean next(NullWritable nullWritable,
                    AvroGenericRecordWritable record)
             throws IOException
Throws:
IOException

createKey

public NullWritable createKey()

createValue

public AvroGenericRecordWritable createValue()

getPos

public long getPos()
            throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

getProgress

public float getProgress()
                  throws IOException
Throws:
IOException

configure

public void configure(JobConf jobConf)


Copyright © 2012 The Apache Software Foundation