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, getTSetContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public CSVBasedSourceFunction(java.lang.String dataInputdirectory, int datasize, int parallelism, java.lang.String type)
public void prepare(TSetContext context)
TFunction
prepare
in interface TFunction<java.lang.String[],java.lang.String[]>
prepare
in class BaseTFunction<java.lang.String[],java.lang.String[]>
context
- CONTEXTpublic boolean hasNext()
SourceFunc
hasNext
in interface SourceFunc<java.lang.String[]>
public java.lang.String[] next()
SourceFunc
next
in interface SourceFunc<java.lang.String[]>