JavaScript is disabled on your browser.
All Superinterfaces:
AutoCloseable , Iterable <Entity >, Iterator <Entity >
Iterates through an
Entity based query result.
Use try with resources or remember to call
close() in order to close underlying resources.
Copy
try (EntityResultIterator iterator = connection.iterator(select)) {
while (iterator.hasNext()) {
Entity entity = iterator.next();
// process entity
}
}
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
void
Returns this iterator, enabling use in a for-each loop.
Method Details
iterator
Returns this iterator, enabling use in a for-each loop.
Note that this iterator is single-use; a new iterator must be
obtained in order to iterate the results again.
Specified by:
iterator in interface Iterable <Entity >
Returns:
this iterator