K
- Type of the keyV
- Type of the value.@Public public class HadoopInputFormat<K,V> extends HadoopInputFormatBase<K,V,Tuple2<K,V>> implements ResultTypeQueryable<Tuple2<K,V>>
The IF is returning a Tuple2<K,V>
.
fetched, hasNext, key, keyClass, value, valueClass
credentials
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 |
---|---|
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, getInputSplitAssigner, getJobConf, getStatistics, open, reachedEnd
getCredentialsFromUGI, read, write
closeInputFormat, getRuntimeContext, openInputFormat, setRuntimeContext
public HadoopInputFormat(org.apache.hadoop.mapred.InputFormat<K,V> mapredInputFormat, Class<K> key, Class<V> value, org.apache.hadoop.mapred.JobConf job)
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.