|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.search.LazyQueryResultIterator
public class LazyQueryResultIterator
Implementation for QueryResultIterator
. This is what is returned when
the CacheQuery.lazyIterator()
method is called. This loads the results only when required and hence differs from
QueryResultIteratorImpl
which is the other implementation of QueryResultIterator.
Constructor Summary | |
---|---|
LazyQueryResultIterator(org.hibernate.search.engine.DocumentExtractor extractor,
CacheEntityLoader entityLoader,
org.apache.lucene.search.IndexSearcher searcher,
org.hibernate.search.engine.SearchFactoryImplementor searchFactory,
int first,
int max,
int fetchSize)
|
Method Summary | |
---|---|
void |
add(Object o)
This method is not supported in and should not be called. |
void |
afterFirst()
Jumps to the one-after-the-first result |
void |
beforeLast()
Jumps to the one-before-the-last result |
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 the first result |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
boolean |
isAfterFirst()
|
boolean |
isBeforeLast()
|
boolean |
isFirst()
|
boolean |
isLast()
|
void |
jumpToResult(int index)
Jumps to a specific index in the iterator. |
void |
last()
Jumps to the last result |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazyQueryResultIterator(org.hibernate.search.engine.DocumentExtractor extractor, CacheEntityLoader entityLoader, org.apache.lucene.search.IndexSearcher searcher, org.hibernate.search.engine.SearchFactoryImplementor searchFactory, int first, int max, int fetchSize)
Method Detail |
---|
public void jumpToResult(int index) throws IndexOutOfBoundsException
QueryResultIterator
jumpToResult
in interface QueryResultIterator
index
- index to jump to.
IndexOutOfBoundsException
- if the index is out of boundspublic void first()
QueryResultIterator
first
in interface QueryResultIterator
public void last()
QueryResultIterator
last
in interface QueryResultIterator
public void afterFirst()
QueryResultIterator
afterFirst
in interface QueryResultIterator
public void beforeLast()
QueryResultIterator
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 |