T - typepublic class DiskPartitionBackedSourceWrapper<T> extends BaseSourceFunc<T>
DiskPartitionBackedSource. This is used
for checkpointing purposes. Not intended to be used as a usual source.| Constructor and Description |
|---|
DiskPartitionBackedSourceWrapper(DiskPartitionBackedSource<T> sourceFunc) |
| Modifier and Type | Method and Description |
|---|---|
DataPartition<?> |
get() |
boolean |
hasNext()
Weather we have more data
|
T |
next()
Get the next value
|
void |
prepare(TSetContext ctx)
Prepare the function.
|
getInput, getTSetContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic DiskPartitionBackedSourceWrapper(DiskPartitionBackedSource<T> sourceFunc)
public void prepare(TSetContext ctx)
TFunctionpublic boolean hasNext()
SourceFuncpublic T next()
SourceFuncpublic DataPartition<?> get()