public abstract class HadoopInputFormatBase<K,V,T> extends Object implements InputFormat<T,HadoopInputSplit>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fetched |
protected boolean |
hasNext |
protected Class<K> |
keyClass |
protected org.apache.hadoop.mapreduce.RecordReader<K,V> |
recordReader |
protected Class<V> |
valueClass |
| Constructor and Description |
|---|
HadoopInputFormatBase(org.apache.hadoop.mapreduce.InputFormat<K,V> mapreduceInputFormat,
Class<K> key,
Class<V> value,
org.apache.hadoop.mapreduce.Job job) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Configuration parameters) |
HadoopInputSplit[] |
createInputSplits(int minNumSplits) |
protected void |
fetchNext() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
InputSplitAssigner |
getInputSplitAssigner(HadoopInputSplit[] inputSplits) |
BaseStatistics |
getStatistics(BaseStatistics cachedStats) |
void |
open(HadoopInputSplit split) |
boolean |
reachedEnd() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextRecordpublic org.apache.hadoop.conf.Configuration getConfiguration()
public void configure(Configuration parameters)
configure in interface InputFormat<T,HadoopInputSplit>public BaseStatistics getStatistics(BaseStatistics cachedStats) throws IOException
getStatistics in interface InputFormat<T,HadoopInputSplit>IOExceptionpublic HadoopInputSplit[] createInputSplits(int minNumSplits) throws IOException
createInputSplits in interface InputFormat<T,HadoopInputSplit>createInputSplits in interface InputSplitSource<HadoopInputSplit>IOExceptionpublic InputSplitAssigner getInputSplitAssigner(HadoopInputSplit[] inputSplits)
getInputSplitAssigner in interface InputFormat<T,HadoopInputSplit>getInputSplitAssigner in interface InputSplitSource<HadoopInputSplit>public void open(HadoopInputSplit split) throws IOException
open in interface InputFormat<T,HadoopInputSplit>IOExceptionpublic boolean reachedEnd()
throws IOException
reachedEnd in interface InputFormat<T,HadoopInputSplit>IOExceptionprotected void fetchNext()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface InputFormat<T,HadoopInputSplit>IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.