K - Key TypeV - Value Type@Public public class HadoopInputFormat<K,V> extends HadoopInputFormatBase<K,V,Tuple2<K,V>> implements ResultTypeQueryable<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 |
|---|---|
TypeInformation<Tuple2<K,V>> |
getProducedType() |
Tuple2<K,V> |
nextRecord(Tuple2<K,V> record) |
close, configure, createInputSplits, fetchNext, getConfiguration, getInputSplitAssigner, getStatistics, open, reachedEndgetCredentialsFromUGI, read, writecloseInputFormat, getRuntimeContext, openInputFormat, setRuntimeContextpublic 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 Tuple2<K,V> nextRecord(Tuple2<K,V> record) throws IOException
nextRecord in interface InputFormat<Tuple2<K,V>,HadoopInputSplit>IOExceptionpublic TypeInformation<Tuple2<K,V>> getProducedType()
getProducedType in interface ResultTypeQueryable<Tuple2<K,V>>Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.