public class DelegatingCollector extends Collector
Modifier and Type | Field and Description |
---|---|
protected Collector |
delegate |
protected int |
docBase |
protected IndexReader |
reader |
protected Scorer |
scorer |
Constructor and Description |
---|
DelegatingCollector() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDocsOutOfOrder() |
void |
collect(int doc) |
Collector |
getDelegate() |
void |
setDelegate(Collector delegate) |
void |
setLastDelegate(Collector delegate)
Sets the last delegate in a chain of DelegatingCollectors
|
void |
setNextReader(IndexReader reader,
int docBase) |
void |
setScorer(Scorer scorer) |
protected Collector delegate
protected Scorer scorer
protected IndexReader reader
protected int docBase
public Collector getDelegate()
public void setDelegate(Collector delegate)
public void setLastDelegate(Collector delegate)
public void setScorer(Scorer scorer) throws IOException
setScorer
in class Collector
IOException
public void collect(int doc) throws IOException
collect
in class Collector
IOException
public void setNextReader(IndexReader reader, int docBase) throws IOException
setNextReader
in class Collector
IOException
public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder
in class Collector