public class IterativeConsumer<T> extends java.lang.Object implements DataPartitionConsumer<T>
Constructor and Description |
---|
IterativeConsumer(java.util.Iterator<T> iterator) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Weather we have a next value
|
T |
next()
Return the next value
|
public IterativeConsumer(java.util.Iterator<T> iterator)
public boolean hasNext()
DataPartitionConsumer
hasNext
in interface DataPartitionConsumer<T>
public T next()
DataPartitionConsumer
next
in interface DataPartitionConsumer<T>