@Internal public abstract class HadoopInputFormatBase<K,V,T> extends HadoopInputFormatCommonBase<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 |
credentials| 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() |
getCredentialsFromUGI, read, writecloseInputFormat, getRuntimeContext, openInputFormat, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextRecordpublic org.apache.hadoop.conf.Configuration getConfiguration()
public void configure(Configuration parameters)
public BaseStatistics getStatistics(BaseStatistics cachedStats) throws IOException
IOExceptionpublic HadoopInputSplit[] createInputSplits(int minNumSplits) throws IOException
IOExceptionpublic InputSplitAssigner getInputSplitAssigner(HadoopInputSplit[] inputSplits)
public void open(HadoopInputSplit split) throws IOException
IOExceptionpublic boolean reachedEnd()
throws IOException
IOExceptionprotected void fetchNext()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.