@NotThreadSafe public class EagerIterator extends AbstractIterator
CacheQuery.iterator()
using
a FetchOptions.FetchMode.EAGER
.
Constructor and Description |
---|
EagerIterator(List<org.hibernate.search.query.engine.spi.EntityInfo> entityInfos,
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, remove
public EagerIterator(List<org.hibernate.search.query.engine.spi.EntityInfo> entityInfos, QueryResultLoader resultLoader, int fetchSize)
public void close()
ResultIterator
protected org.hibernate.search.query.engine.spi.EntityInfo loadEntityInfo(int index)
loadEntityInfo
in class AbstractIterator
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.