public class DelegatingCollector extends SimpleCollector
| Modifier and Type | Field and Description |
|---|---|
protected LeafReaderContext |
context |
protected Collector |
delegate |
protected int |
docBase |
protected LeafCollector |
leafDelegate |
protected Scorer |
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() |
boolean |
needsScores() |
void |
setDelegate(Collector delegate) |
void |
setLastDelegate(Collector delegate)
Sets the last delegate in a chain of DelegatingCollectors
|
void |
setScorer(Scorer scorer) |
getLeafCollectorpublic static int setLastDelegateCount
protected Collector delegate
protected LeafCollector leafDelegate
protected Scorer scorer
protected LeafReaderContext context
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 interface LeafCollectorsetScorer in class SimpleCollectorIOExceptionpublic boolean needsScores()
public void collect(int doc)
throws IOException
collect in interface LeafCollectorcollect in class SimpleCollectorIOExceptionprotected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader in class SimpleCollectorIOExceptionpublic void finish()
throws IOException
IOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.