|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 QueryResultIteratorindex - to jump to
IndexOutOfBoundsExceptionpublic void first()
first in interface QueryResultIteratorpublic void last()
last in interface QueryResultIteratorpublic void afterFirst()
afterFirst in interface QueryResultIteratorpublic void beforeLast()
beforeLast in interface QueryResultIteratorpublic boolean isFirst()
isFirst in interface QueryResultIteratorpublic boolean isLast()
isLast in interface QueryResultIteratorpublic boolean isAfterFirst()
isAfterFirst in interface QueryResultIteratorpublic boolean isBeforeLast()
isBeforeLast in interface QueryResultIteratorpublic void close()
QueryResultIterator
close in interface QueryResultIteratorpublic boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIterator
public void set(Object o)
throws UnsupportedOperationException
set in interface ListIteratoro -
UnsupportedOperationExceptionpublic void add(Object o)
add in interface ListIteratoro -
UnsupportedOperationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||