public class TextBasedSourceFunction extends BaseSourceFunc<java.lang.String>
Constructor and Description |
---|
TextBasedSourceFunction(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 TextBasedSourceFunction(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
public java.lang.String next()
SourceFunc