org.apache.hadoop.hive.ql.io.avro
Class AvroGenericRecordReader
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jobConf
protected JobConf jobConf
AvroGenericRecordReader
public AvroGenericRecordReader(JobConf job,
FileSplit split,
Reporter reporter)
throws IOException
- Throws:
IOException
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