Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.query.impl
Class EagerIterator

java.lang.Object
  extended by org.infinispan.query.impl.AbstractIterator
      extended by org.infinispan.query.impl.EagerIterator
All Implemented Interfaces:
Iterator<Object>, ResultIterator

@NotThreadSafe
public class EagerIterator
extends AbstractIterator

This is the implementation class for the interface ResultIterator. It is what is returned when the CacheQuery.iterator() using a FetchOptions.FetchMode.EAGER.

Author:
Navin Surtani, Marko Luksa

Field Summary
 
Fields inherited from class org.infinispan.query.impl.AbstractIterator
buffer, bufferIndex, fetchSize, index, max
 
Constructor Summary
EagerIterator(List<org.hibernate.search.query.engine.spi.EntityInfo> entityInfos, QueryResultLoader resultLoader, int fetchSize)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.infinispan.query.impl.AbstractIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EagerIterator

public EagerIterator(List<org.hibernate.search.query.engine.spi.EntityInfo> entityInfos,
                     QueryResultLoader resultLoader,
                     int fetchSize)
Method Detail

close

public void close()
Description copied from interface: ResultIterator
This method must be called on your iterator once you have finished so that any local or remote resources can be freed up.


loadEntityInfo

protected org.hibernate.search.query.engine.spi.EntityInfo loadEntityInfo(int index)
Specified by:
loadEntityInfo in class AbstractIterator

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.