public class ExistsTupleCollector extends LuceneQueryEngine.TupleCollector
| Modifier and Type | Class and Description |
|---|---|
static class |
ExistsTupleCollector.CompletedException
Thrown when elapsed search time exceeds allowed search time.
|
| Constructor and Description |
|---|
ExistsTupleCollector(LuceneQueryEngine.TupleCollector collector)
Create a ExistsTupleCollector wrapper over another
Collector, where the wrapper stops after the first non-zero
scored document. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsDocsOutOfOrder() |
float |
doCollect(int doc) |
List<Object[]> |
getTuples()
Get the tuples.
|
void |
setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase) |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
collectpublic ExistsTupleCollector(LuceneQueryEngine.TupleCollector collector)
Collector, where the wrapper stops after the first non-zero
scored document.collector - the wrapped Collectorpublic float doCollect(int doc)
throws IOException
doCollect in class LuceneQueryEngine.TupleCollectorIOExceptionpublic List<Object[]> getTuples()
LuceneQueryEngine.TupleCollectorgetTuples in class LuceneQueryEngine.TupleCollectorpublic void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
setScorer in class org.apache.lucene.search.CollectorIOExceptionpublic void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
setNextReader in class org.apache.lucene.search.CollectorIOExceptionpublic boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder in class org.apache.lucene.search.CollectorCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.