|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.query.impl.AbstractIterator
org.infinispan.query.impl.EagerIterator
@NotThreadSafe public class EagerIterator
This is the implementation class for the interface QueryResultIterator which extends ListIterator. It is what is
returned when the CacheQuery.iterator()
.
Field Summary |
---|
Fields inherited from class org.infinispan.query.impl.AbstractIterator |
---|
buffer, bufferIndex, cache, fetchSize, first, index, max |
Constructor Summary | |
---|---|
EagerIterator(List<Object> idList,
Cache cache,
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 given index in the list of results. |
Object |
next()
Returns the next element in the list |
int |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next. |
Object |
previous()
Returns the previous element in the list. |
int |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous. |
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 EagerIterator(List<Object> idList, Cache cache, int fetchSize)
Method Detail |
---|
public void jumpToResult(int index) throws IndexOutOfBoundsException
index
- to jump to
IndexOutOfBoundsException
public 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
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |