public class CSVBasedSourceFunction extends BaseSourceFunc<java.lang.String[]> implements java.io.Serializable
| Constructor and Description |
|---|
CSVBasedSourceFunction(java.lang.String dataInputdirectory,
int datasize,
int parallelism,
java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Weather we have more data
|
java.lang.String[] |
next()
Get the next value
|
void |
prepare(TSetContext context)
Prepare the function.
|
getInput, getTSetContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic CSVBasedSourceFunction(java.lang.String dataInputdirectory,
int datasize,
int parallelism,
java.lang.String type)
public void prepare(TSetContext context)
TFunctionprepare in interface TFunction<java.lang.String[],java.lang.String[]>prepare in class BaseTFunction<java.lang.String[],java.lang.String[]>context - CONTEXTpublic boolean hasNext()
SourceFunchasNext in interface SourceFunc<java.lang.String[]>public java.lang.String[] next()
SourceFuncnext in interface SourceFunc<java.lang.String[]>