public abstract class HadoopInputFormatBase<K,V,T> extends Object implements org.apache.flink.api.common.io.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(org.apache.flink.configuration.Configuration parameters) |
HadoopInputSplit[] |
createInputSplits(int minNumSplits) |
protected void |
fetchNext() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.flink.core.io.InputSplitAssigner |
getInputSplitAssigner(HadoopInputSplit[] inputSplits) |
org.apache.flink.api.common.io.statistics.BaseStatistics |
getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStats) |
void |
open(HadoopInputSplit split) |
boolean |
reachedEnd() |
public org.apache.hadoop.conf.Configuration getConfiguration()
public void configure(org.apache.flink.configuration.Configuration parameters)
configure in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>public org.apache.flink.api.common.io.statistics.BaseStatistics getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStats)
throws IOException
getStatistics in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>IOExceptionpublic HadoopInputSplit[] createInputSplits(int minNumSplits) throws IOException
createInputSplits in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>createInputSplits in interface org.apache.flink.core.io.InputSplitSource<HadoopInputSplit>IOExceptionpublic org.apache.flink.core.io.InputSplitAssigner getInputSplitAssigner(HadoopInputSplit[] inputSplits)
getInputSplitAssigner in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>getInputSplitAssigner in interface org.apache.flink.core.io.InputSplitSource<HadoopInputSplit>public void open(HadoopInputSplit split) throws IOException
open in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>IOExceptionpublic boolean reachedEnd()
throws IOException
reachedEnd in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>IOExceptionprotected void fetchNext()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>IOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.