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) |
collect
public ExistsTupleCollector(LuceneQueryEngine.TupleCollector collector)
Collector
, where the wrapper stops after the first non-zero
scored document.collector
- the wrapped Collector
public float doCollect(int doc) throws IOException
doCollect
in class LuceneQueryEngine.TupleCollector
IOException
public List<Object[]> getTuples()
LuceneQueryEngine.TupleCollector
getTuples
in class LuceneQueryEngine.TupleCollector
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in class org.apache.lucene.search.Collector
IOException
public void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase) throws IOException
setNextReader
in class org.apache.lucene.search.Collector
IOException
public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.