public abstract class LeafBucketCollector
extends java.lang.Object
implements org.apache.lucene.search.LeafCollector
| Modifier and Type | Field and Description |
|---|---|
static LeafBucketCollector |
NO_OP_COLLECTOR |
| Constructor and Description |
|---|
LeafBucketCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc) |
abstract void |
collect(int doc,
long bucket)
Collect the given doc in the given bucket.
|
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
static LeafBucketCollector |
wrap(java.lang.Iterable<LeafBucketCollector> collectors) |
public static final LeafBucketCollector NO_OP_COLLECTOR
public static LeafBucketCollector wrap(java.lang.Iterable<LeafBucketCollector> collectors)
public abstract void collect(int doc,
long bucket)
throws java.io.IOException
java.io.IOExceptionpublic final void collect(int doc)
throws java.io.IOException
collect in interface org.apache.lucene.search.LeafCollectorjava.io.IOExceptionpublic void setScorer(org.apache.lucene.search.Scorer scorer)
throws java.io.IOException
setScorer in interface org.apache.lucene.search.LeafCollectorjava.io.IOException