|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.search.QueryResultIteratorImpl
public class QueryResultIteratorImpl
This is the implementation class for the interface QueryResultIterator which extends ListIterator. It is what is returned when the iterator() method is run on a CacheQuery instance.
Constructor Summary | |
---|---|
QueryResultIteratorImpl(List<CacheEntityId> idList,
CacheEntityLoader entityLoader)
|
Method Summary | |
---|---|
void |
add(Object o)
This method is not supported in and should not be called. |
void |
afterFirst()
Jumps to second element in the list. |
void |
beforeLast()
Jumps to penultimate element in the list. |
void |
close()
This method must be called on your iterator once you have finished so that Lucene resources can be freed up. |
void |
first()
Jumps to first element in the list. |
boolean |
hasNext()
Returns true if the list has more elements when traversing the list in the forward direction. |
boolean |
hasPrevious()
Returns true if the list has more elements when traversing the list in the reverse direction. |
boolean |
isAfterFirst()
|
boolean |
isBeforeLast()
|
boolean |
isFirst()
|
boolean |
isLast()
|
void |
jumpToResult(int index)
Jumps to a given index in the list of results. |
void |
last()
Jumps to last element in the list. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryResultIteratorImpl(List<CacheEntityId> idList, CacheEntityLoader entityLoader)
Method Detail |
---|
public void jumpToResult(int index) throws IndexOutOfBoundsException
jumpToResult
in interface QueryResultIterator
index
- to jump to
IndexOutOfBoundsException
public void first()
first
in interface QueryResultIterator
public void last()
last
in interface QueryResultIterator
public void afterFirst()
afterFirst
in interface QueryResultIterator
public void beforeLast()
beforeLast
in interface QueryResultIterator
public boolean isFirst()
isFirst
in interface QueryResultIterator
public boolean isLast()
isLast
in interface QueryResultIterator
public boolean isAfterFirst()
isAfterFirst
in interface QueryResultIterator
public boolean isBeforeLast()
isBeforeLast
in interface QueryResultIterator
public void close()
QueryResultIterator
close
in interface QueryResultIterator
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void set(Object o) throws UnsupportedOperationException
set
in interface ListIterator
o
-
UnsupportedOperationException
public void add(Object o)
add
in interface ListIterator
o
-
UnsupportedOperationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |