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, waitclosepublic HadoopSource(Configuration conf,
java.lang.Class<F> inputClazz)
public void prepare(TSetContext ctx)
TFunctionpublic boolean hasNext()
SourceFunchasNext in interface SourceFunc<Tuple<K,V>>public Tuple<K,V> next()
SourceFuncnext in interface SourceFunc<Tuple<K,V>>