public class DelegatingCollector
extends org.apache.lucene.search.SimpleCollector
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.index.LeafReaderContext |
context |
protected org.apache.lucene.search.Collector |
delegate |
protected int |
docBase |
protected org.apache.lucene.search.LeafCollector |
leafDelegate |
protected org.apache.lucene.search.Scorer |
scorer |
static int |
setLastDelegateCount |
Constructor and Description |
---|
DelegatingCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext context) |
void |
finish() |
org.apache.lucene.search.Collector |
getDelegate() |
boolean |
needsScores() |
void |
setDelegate(org.apache.lucene.search.Collector delegate) |
void |
setLastDelegate(org.apache.lucene.search.Collector delegate)
Sets the last delegate in a chain of DelegatingCollectors
|
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
public static int setLastDelegateCount
protected org.apache.lucene.search.Collector delegate
protected org.apache.lucene.search.LeafCollector leafDelegate
protected org.apache.lucene.search.Scorer scorer
protected org.apache.lucene.index.LeafReaderContext context
protected int docBase
public org.apache.lucene.search.Collector getDelegate()
public void setDelegate(org.apache.lucene.search.Collector delegate)
public void setLastDelegate(org.apache.lucene.search.Collector delegate)
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in interface org.apache.lucene.search.LeafCollector
setScorer
in class org.apache.lucene.search.SimpleCollector
IOException
public boolean needsScores()
public void collect(int doc) throws IOException
collect
in interface org.apache.lucene.search.LeafCollector
collect
in class org.apache.lucene.search.SimpleCollector
IOException
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
doSetNextReader
in class org.apache.lucene.search.SimpleCollector
IOException
public void finish() throws IOException
IOException
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.