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, updateIOContext
protected 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
IOException
public void doClose() throws IOException
HiveContextAwareRecordReader
InputSplit
to future operations.doClose
in class HiveContextAwareRecordReader<K extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable>
IOException
public K createKey()
public V createValue()
public long getPos() throws IOException
IOException
public 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>
IOException
public 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>
IOException
protected boolean initNextRecordReader() throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.