Modifier and Type | Method and Description |
---|---|
ResultIterator |
iterator()
Returns the results of a search as a
ResultIterator . |
ResultIterator |
iterator(FetchOptions fetchOptions)
Returns the results of a search as a
ResultIterator . |
getResultSize, list
ResultIterator iterator(FetchOptions fetchOptions)
ResultIterator
.
Warning: the return type is an extension of Iterator
which introduces a ResultIterator.close()
method. This close method needs to be invoked when the iteration is complete to avoid resource leakage.fetchOptions
- how to fetch results (see @link FetchOptions)ResultIterator iterator()
ResultIterator
. This calls Query#iterator(FetchOptions fetchOptions)
with default FetchOptions; this implies eager loading of all results.Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.