|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.lucene.search.IterablePaging
public class IterablePaging
The IterablePaging
class allows for easy paging through lucene hits.
Nested Class Summary | |
---|---|
static class |
IterablePaging.ProgressRef
|
static class |
IterablePaging.TotalHitsRef
|
Constructor Summary | |
---|---|
IterablePaging(java.util.concurrent.atomic.AtomicBoolean running,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.search.Query query,
int numHitsToCollect,
IterablePaging.TotalHitsRef totalHitsRef,
IterablePaging.ProgressRef progressRef,
boolean runSlow,
org.apache.lucene.search.Sort sort,
DeepPagingCache deepPagingCache)
|
Method Summary | |
---|---|
IterablePaging |
gather(int gather)
Only gather up to x number of hits. |
int |
getTotalHits()
Gets the total hits of the search. |
BlurIterator<org.apache.lucene.search.ScoreDoc,BlurException> |
iterator()
The ScoreDoc iterator. |
IterablePaging |
progress(IterablePaging.ProgressRef ref)
Allows for gathering the progress of the paging. |
IterablePaging |
skipTo(int skipTo)
Skips the first x number of hits. |
IterablePaging |
totalHits(IterablePaging.TotalHitsRef ref)
Allows for gathering of the total hits of this search. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IterablePaging(java.util.concurrent.atomic.AtomicBoolean running, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.Query query, int numHitsToCollect, IterablePaging.TotalHitsRef totalHitsRef, IterablePaging.ProgressRef progressRef, boolean runSlow, org.apache.lucene.search.Sort sort, DeepPagingCache deepPagingCache) throws BlurException
BlurException
Method Detail |
---|
public int getTotalHits()
public IterablePaging totalHits(IterablePaging.TotalHitsRef ref)
ref
- IterablePaging.TotalHitsRef
.
public IterablePaging skipTo(int skipTo)
skipTo
- the number hits to skip.
public IterablePaging gather(int gather)
gather
- the number of hits to gather.
public IterablePaging progress(IterablePaging.ProgressRef ref)
ref
- the IterablePaging.ProgressRef
.
public BlurIterator<org.apache.lucene.search.ScoreDoc,BlurException> iterator() throws BlurException
ScoreDoc
iterator.
iterator
in interface BlurIterable<org.apache.lucene.search.ScoreDoc,BlurException>
BlurException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |