public class DelegatingCollector extends SimpleCollector
Modifier and Type | Field and Description |
---|---|
protected LeafReaderContext |
context |
protected Collector |
delegate |
protected int |
docBase |
protected LeafCollector |
leafDelegate |
protected Scorable |
scorer |
static int |
setLastDelegateCount |
Constructor and Description |
---|
DelegatingCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(LeafReaderContext context) |
void |
finish() |
Collector |
getDelegate() |
ScoreMode |
scoreMode() |
void |
setDelegate(Collector delegate) |
void |
setLastDelegate(Collector delegate)
Sets the last delegate in a chain of DelegatingCollectors
|
void |
setScorer(Scorable scorer) |
getLeafCollector
public static int setLastDelegateCount
protected Collector delegate
protected LeafCollector leafDelegate
protected Scorable scorer
protected LeafReaderContext context
protected int docBase
public Collector getDelegate()
public void setDelegate(Collector delegate)
public void setLastDelegate(Collector delegate)
public void setScorer(Scorable scorer) throws IOException
setScorer
in interface LeafCollector
setScorer
in class SimpleCollector
IOException
public ScoreMode scoreMode()
public void collect(int doc) throws IOException
collect
in interface LeafCollector
collect
in class SimpleCollector
IOException
protected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader
in class SimpleCollector
IOException
public void finish() throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.