@NotThreadSafe public class LazyIterator extends AbstractIterator
ResultIterator. This loads the results only when required
and hence differs from EagerIterator which is the other implementation of ResultIterator.| Constructor and Description |
|---|
LazyIterator(org.hibernate.search.query.engine.spi.DocumentExtractor extractor,
QueryResultLoader resultLoader,
int fetchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method must be called on your iterator once you have finished so that any local
or remote resources can be freed up.
|
protected org.hibernate.search.query.engine.spi.EntityInfo |
loadEntityInfo(int index) |
hasNext, next, removepublic LazyIterator(org.hibernate.search.query.engine.spi.DocumentExtractor extractor,
QueryResultLoader resultLoader,
int fetchSize)
public void close()
ResultIteratorprotected org.hibernate.search.query.engine.spi.EntityInfo loadEntityInfo(int index)
loadEntityInfo in class AbstractIteratorCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.