Class HadoopInputFormatBase<K,V,T>
- java.lang.Object
-
- org.apache.flink.api.common.io.RichInputFormat<T,SPITTYPE>
-
- org.apache.flink.api.java.hadoop.common.HadoopInputFormatCommonBase<T,HadoopInputSplit>
-
- org.apache.flink.api.java.hadoop.mapreduce.HadoopInputFormatBase<K,V,T>
-
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.io.InputFormat<T,HadoopInputSplit>,org.apache.flink.core.io.InputSplitSource<HadoopInputSplit>
- Direct Known Subclasses:
HadoopInputFormat
@Internal public abstract class HadoopInputFormatBase<K,V,T> extends HadoopInputFormatCommonBase<T,HadoopInputSplit>
Base class shared between the Java and Scala API of Flink.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanfetchedprotected booleanhasNextprotected Class<K>keyClassprotected org.apache.hadoop.mapreduce.RecordReader<K,V>recordReaderprotected Class<V>valueClass-
Fields inherited from class org.apache.flink.api.java.hadoop.common.HadoopInputFormatCommonBase
credentials
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfigure(org.apache.flink.configuration.Configuration parameters)HadoopInputSplit[]createInputSplits(int minNumSplits)protected voidfetchNext()org.apache.hadoop.conf.ConfigurationgetConfiguration()org.apache.flink.core.io.InputSplitAssignergetInputSplitAssigner(HadoopInputSplit[] inputSplits)org.apache.flink.api.common.io.statistics.BaseStatisticsgetStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStats)voidopen(HadoopInputSplit split)booleanreachedEnd()-
Methods inherited from class org.apache.flink.api.java.hadoop.common.HadoopInputFormatCommonBase
getCredentialsFromUGI, read, write
-
Methods inherited from class org.apache.flink.api.common.io.RichInputFormat
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
-
-
-
-
Method Detail
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
-
configure
public void configure(org.apache.flink.configuration.Configuration parameters)
-
getStatistics
public org.apache.flink.api.common.io.statistics.BaseStatistics getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStats) throws IOException- Throws:
IOException
-
createInputSplits
public HadoopInputSplit[] createInputSplits(int minNumSplits) throws IOException
- Throws:
IOException
-
getInputSplitAssigner
public org.apache.flink.core.io.InputSplitAssigner getInputSplitAssigner(HadoopInputSplit[] inputSplits)
-
open
public void open(HadoopInputSplit split) throws IOException
- Throws:
IOException
-
reachedEnd
public boolean reachedEnd() throws IOException- Throws:
IOException
-
fetchNext
protected void fetchNext() throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
-