public class DelegatingCollector extends Collector
Modifier and Type | Field and Description |
---|---|
protected AtomicReaderContext |
context |
protected Collector |
delegate |
protected int |
docBase |
protected Scorer |
scorer |
static int |
setLastDelegateCount |
Constructor and Description |
---|
DelegatingCollector() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDocsOutOfOrder() |
void |
collect(int doc) |
void |
finish() |
Collector |
getDelegate() |
void |
setDelegate(Collector delegate) |
void |
setLastDelegate(Collector delegate)
Sets the last delegate in a chain of DelegatingCollectors
|
void |
setNextReader(AtomicReaderContext context) |
void |
setScorer(Scorer scorer) |
public static int setLastDelegateCount
protected Collector delegate
protected Scorer scorer
protected AtomicReaderContext 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 class Collector
IOException
public void collect(int doc) throws IOException
collect
in class Collector
IOException
public void setNextReader(AtomicReaderContext context) throws IOException
setNextReader
in class Collector
IOException
public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder
in class Collector
public void finish() throws IOException
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.