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, valueClass
credentials
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()
Gets the data type (as a
TypeInformation ) produced by this function or input format. |
Tuple2<K,V> |
nextRecord(Tuple2<K,V> record)
Reads the next record from the input.
|
close, configure, createInputSplits, fetchNext, getConfiguration, getInputSplitAssigner, getStatistics, open, reachedEnd
getCredentialsFromUGI, read, write
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
public 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
IOException
public Tuple2<K,V> nextRecord(Tuple2<K,V> record) throws IOException
InputFormat
When this method is called, the input format it guaranteed to be opened.
nextRecord
in interface InputFormat<Tuple2<K,V>,HadoopInputSplit>
record
- Object that may be reused.IOException
- Thrown, if an I/O error occurred.public TypeInformation<Tuple2<K,V>> getProducedType()
ResultTypeQueryable
TypeInformation
) produced by this function or input format.getProducedType
in interface ResultTypeQueryable<Tuple2<K,V>>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.