org.apache.hadoop.hive.ql.io
Class HiveRecordReader<K extends WritableComparable,V extends Writable>
java.lang.Object
org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader<K,V>
org.apache.hadoop.hive.ql.io.HiveRecordReader<K,V>
public class HiveRecordReader<K extends WritableComparable,V extends Writable>
- extends HiveContextAwareRecordReader<K,V>
HiveRecordReader is a simple wrapper on RecordReader. It allows us to stop
reading the data when some global flag ExecMapper.getDone() is set.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HiveRecordReader
public HiveRecordReader(RecordReader recordReader)
throws IOException
- Throws:
IOException
HiveRecordReader
public HiveRecordReader(RecordReader recordReader,
JobConf conf)
throws IOException
- Throws:
IOException
doClose
public void doClose()
throws IOException
- Description copied from class:
HiveContextAwareRecordReader
- Close this
InputSplit
to future operations.
- Specified by:
doClose
in class HiveContextAwareRecordReader<K extends WritableComparable,V extends Writable>
- Throws:
IOException
createKey
public K createKey()
createValue
public V createValue()
getPos
public long getPos()
throws IOException
- Throws:
IOException
getProgress
public float getProgress()
throws IOException
- Overrides:
getProgress
in class HiveContextAwareRecordReader<K extends WritableComparable,V extends Writable>
- Throws:
IOException
doNext
public boolean doNext(K key,
V value)
throws IOException
- Overrides:
doNext
in class HiveContextAwareRecordReader<K extends WritableComparable,V extends Writable>
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation