public abstract class HiveContextAwareRecordReader<K,V> extends Object implements org.apache.hadoop.mapred.RecordReader<K,V>
Modifier and Type | Field and Description |
---|---|
protected boolean |
isSorted |
protected org.apache.hadoop.mapred.JobConf |
jobConf |
protected org.apache.hadoop.mapred.RecordReader |
recordReader |
Constructor and Description |
---|
HiveContextAwareRecordReader(org.apache.hadoop.mapred.JobConf conf) |
HiveContextAwareRecordReader(org.apache.hadoop.mapred.RecordReader recordReader) |
HiveContextAwareRecordReader(org.apache.hadoop.mapred.RecordReader recordReader,
org.apache.hadoop.mapred.JobConf conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
abstract void |
doClose()
Close this
InputSplit to future operations. |
boolean |
doNext(K key,
V value) |
boolean |
foundAllTargets()
Returns true if the current comparison is in the list of stop comparisons, i.e.
|
IOContext |
getIOContext() |
float |
getProgress() |
void |
initIOContext(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.JobConf job,
Class inputFormatClass) |
void |
initIOContext(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.JobConf job,
Class inputFormatClass,
org.apache.hadoop.mapred.RecordReader recordReader) |
void |
initIOContextSortedProps(org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.RecordReader recordReader,
org.apache.hadoop.mapred.JobConf job) |
boolean |
next(K key,
V value) |
void |
setRecordReader(org.apache.hadoop.mapred.RecordReader recordReader) |
protected void |
updateIOContext() |
protected org.apache.hadoop.mapred.RecordReader recordReader
protected org.apache.hadoop.mapred.JobConf jobConf
protected boolean isSorted
public HiveContextAwareRecordReader(org.apache.hadoop.mapred.JobConf conf) throws IOException
IOException
public HiveContextAwareRecordReader(org.apache.hadoop.mapred.RecordReader recordReader)
public HiveContextAwareRecordReader(org.apache.hadoop.mapred.RecordReader recordReader, org.apache.hadoop.mapred.JobConf conf) throws IOException
IOException
public void setRecordReader(org.apache.hadoop.mapred.RecordReader recordReader)
public abstract void doClose() throws IOException
InputSplit
to future operations.IOException
public void close() throws IOException
close
in interface org.apache.hadoop.mapred.RecordReader<K,V>
IOException
public boolean next(K key, V value) throws IOException
next
in interface org.apache.hadoop.mapred.RecordReader<K,V>
IOException
protected void updateIOContext() throws IOException
IOException
public IOContext getIOContext()
public void initIOContext(org.apache.hadoop.mapred.FileSplit split, org.apache.hadoop.mapred.JobConf job, Class inputFormatClass) throws IOException
IOException
public void initIOContext(org.apache.hadoop.mapred.FileSplit split, org.apache.hadoop.mapred.JobConf job, Class inputFormatClass, org.apache.hadoop.mapred.RecordReader recordReader) throws IOException
IOException
public void initIOContextSortedProps(org.apache.hadoop.mapred.FileSplit split, org.apache.hadoop.mapred.RecordReader recordReader, org.apache.hadoop.mapred.JobConf job)
public float getProgress() throws IOException
getProgress
in interface org.apache.hadoop.mapred.RecordReader<K,V>
IOException
public boolean doNext(K key, V value) throws IOException
IOException
public boolean foundAllTargets()
Copyright © 2017 The Apache Software Foundation. All rights reserved.