class ScrollIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
ScrollableResults
object.Modifier and Type | Field and Description |
---|---|
private boolean |
isClosed |
private E |
nextElement |
private ScrollableResults |
results |
Constructor and Description |
---|
ScrollIterator(ScrollableResults results) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the results and return resources.
|
boolean |
hasNext() |
boolean |
isClosed()
Check if the results has been closed.
|
E |
next() |
void |
remove()
Not supported.
|
private final ScrollableResults results
private boolean isClosed
private E nextElement
ScrollIterator(ScrollableResults results)
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
java.lang.UnsupportedOperationException
- Alwayspublic void close()
public boolean isClosed()