K - Type of the keyV - Type of the value.@Public public class HadoopInputFormat<K,V> extends HadoopInputFormatBase<K,V,org.apache.flink.api.java.tuple.Tuple2<K,V>> implements org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.api.java.tuple.Tuple2<K,V>>
The IF is returning a Tuple2<K,V>.
fetched, hasNext, key, keyClass, value, valueClasscredentials| Constructor and Description |
|---|
HadoopInputFormat(org.apache.hadoop.mapred.InputFormat<K,V> mapredInputFormat,
Class<K> key,
Class<V> value) |
HadoopInputFormat(org.apache.hadoop.mapred.InputFormat<K,V> mapredInputFormat,
Class<K> key,
Class<V> value,
org.apache.hadoop.mapred.JobConf job) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.api.java.tuple.Tuple2<K,V>> |
getProducedType() |
org.apache.flink.api.java.tuple.Tuple2<K,V> |
nextRecord(org.apache.flink.api.java.tuple.Tuple2<K,V> record) |
close, configure, createInputSplits, fetchNext, getInputSplitAssigner, getJobConf, getStatistics, open, reachedEndgetCredentialsFromUGI, read, writepublic HadoopInputFormat(org.apache.hadoop.mapred.InputFormat<K,V> mapredInputFormat, Class<K> key, Class<V> value, org.apache.hadoop.mapred.JobConf job)
public org.apache.flink.api.java.tuple.Tuple2<K,V> nextRecord(org.apache.flink.api.java.tuple.Tuple2<K,V> record) throws IOException
nextRecord in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.api.java.tuple.Tuple2<K,V>,HadoopInputSplit>IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.