|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.query.impl.AbstractIterator org.infinispan.query.impl.LazyIterator
@NotThreadSafe public class LazyIterator
Implementation for QueryIterator
. This is what is returned when the CacheQuery.lazyIterator()
method is called. This loads the results only when required and hence
differs from EagerIterator
which is the other implementation of QueryResultIterator.
Field Summary |
---|
Fields inherited from class org.infinispan.query.impl.AbstractIterator |
---|
buffer, bufferIndex, cache, fetchSize, first, index, max |
Constructor Summary | |
---|---|
LazyIterator(org.hibernate.search.query.engine.spi.HSQuery hSearchQuery,
AdvancedCache<?,?> cache,
KeyTransformationHandler keyTransformationHandler,
int fetchSize)
|
Method Summary | |
---|---|
void |
add(Object o)
This method is not supported in and should not be called. |
void |
close()
This method must be called on your iterator once you have finished so that Lucene resources can be freed up. |
void |
jumpToResult(int index)
Jumps to a specific index in the iterator. |
Object |
next()
|
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
remove()
This method is not supported and should not be used. |
void |
set(Object o)
This method is not supported in and should not be called. |
Methods inherited from class org.infinispan.query.impl.AbstractIterator |
---|
afterFirst, beforeLast, first, hasNext, hasPrevious, isAfterFirst, isBeforeLast, isFirst, isLast, last |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazyIterator(org.hibernate.search.query.engine.spi.HSQuery hSearchQuery, AdvancedCache<?,?> cache, KeyTransformationHandler keyTransformationHandler, int fetchSize)
Method Detail |
---|
public void jumpToResult(int index) throws IndexOutOfBoundsException
QueryIterator
index
- index to jump to.
IndexOutOfBoundsException
- if the index is out of boundspublic void close()
QueryIterator
public Object next()
public Object previous()
public int nextIndex()
public int previousIndex()
public void remove()
public void set(Object o) throws UnsupportedOperationException
o
-
UnsupportedOperationException
public void add(Object o)
o
-
UnsupportedOperationException
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |