K
- KeyV
- ValueF
- InputFormatpublic class HadoopSource<K,V,F extends <any>> extends java.lang.Object implements SourceFunc<Tuple<K,V>>
Modifier and Type | Field and Description |
---|---|
protected <any> |
currentReader
The current record reader
|
Constructor and Description |
---|
HadoopSource(Configuration conf,
java.lang.Class<F> inputClazz) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Weather we have more data
|
Tuple<K,V> |
next()
Get the next value
|
void |
prepare(TSetContext ctx)
Prepare the function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public HadoopSource(Configuration conf, java.lang.Class<F> inputClazz)
public void prepare(TSetContext ctx)
TFunction
public boolean hasNext()
SourceFunc
hasNext
in interface SourceFunc<Tuple<K,V>>
public Tuple<K,V> next()
SourceFunc
next
in interface SourceFunc<Tuple<K,V>>