public class BucketizedHiveRecordReader<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable> extends HiveContextAwareRecordReader<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected int |
idx |
protected org.apache.hadoop.mapred.InputFormat |
inputFormat |
protected long |
progress |
protected org.apache.hadoop.mapred.Reporter |
reporter |
protected BucketizedHiveInputSplit |
split |
isSorted, jobConf, recordReader| Constructor and Description |
|---|
BucketizedHiveRecordReader(org.apache.hadoop.mapred.InputFormat inputFormat,
BucketizedHiveInputSplit bucketizedSplit,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapred.Reporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
K |
createKey() |
V |
createValue() |
void |
doClose()
Close this
InputSplit to future operations. |
boolean |
doNext(K key,
V value) |
long |
getPos() |
float |
getProgress() |
protected boolean |
initNextRecordReader()
Get the record reader for the next chunk in this
BucketizedHiveRecordReader.
|
close, foundAllTargets, getIOContext, initIOContext, initIOContext, initIOContextSortedProps, next, setRecordReader, updateIOContextprotected final BucketizedHiveInputSplit split
protected final org.apache.hadoop.mapred.InputFormat inputFormat
protected final org.apache.hadoop.mapred.Reporter reporter
protected long progress
protected int idx
public BucketizedHiveRecordReader(org.apache.hadoop.mapred.InputFormat inputFormat,
BucketizedHiveInputSplit bucketizedSplit,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
IOExceptionpublic void doClose()
throws IOException
HiveContextAwareRecordReaderInputSplit to future operations.doClose in class HiveContextAwareRecordReader<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>IOExceptionpublic K createKey()
public V createValue()
public long getPos()
throws IOException
IOExceptionpublic float getProgress()
throws IOException
getProgress in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>getProgress in class HiveContextAwareRecordReader<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>IOExceptionpublic boolean doNext(K key, V value) throws IOException
doNext in class HiveContextAwareRecordReader<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>IOExceptionprotected boolean initNextRecordReader()
throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.