K - Key TypeV - Value Type@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>>
fetched, hasNext, keyClass, recordReader, valueClasscredentials| Constructor and Description |
|---|
HadoopInputFormat(org.apache.hadoop.mapreduce.InputFormat<K,V> mapreduceInputFormat,
Class<K> key,
Class<V> value) |
HadoopInputFormat(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 |
|---|---|
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, getConfiguration, getInputSplitAssigner, getStatistics, open, reachedEndgetCredentialsFromUGI, read, writepublic HadoopInputFormat(org.apache.hadoop.mapreduce.InputFormat<K,V> mapreduceInputFormat, Class<K> key, Class<V> value, org.apache.hadoop.mapreduce.Job job)
public HadoopInputFormat(org.apache.hadoop.mapreduce.InputFormat<K,V> mapreduceInputFormat, Class<K> key, Class<V> value) throws IOException
IOExceptionpublic 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.