java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
- Direct Known Subclasses:
Aggregator
,DeferringBucketCollector
,MultiBucketCollector
A Collector that can collect data in separate buckets.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BucketCollector
static final org.apache.lucene.search.Collector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal org.apache.lucene.search.Collector
Return this BucketCollector wrapped as aCollector
abstract LeafBucketCollector
abstract void
Post-collection callback.abstract void
Pre collection callback.abstract org.apache.lucene.search.ScoreMode
Indicates what features are required from the scorer.
-
Field Details
-
NO_OP_BUCKET_COLLECTOR
-
NO_OP_COLLECTOR
public static final org.apache.lucene.search.Collector NO_OP_COLLECTOR
-
-
Constructor Details
-
BucketCollector
public BucketCollector()
-
-
Method Details
-
getLeafCollector
public abstract LeafBucketCollector getLeafCollector(AggregationExecutionContext aggCtx) throws IOException - Throws:
IOException
-
preCollection
Pre collection callback.- Throws:
IOException
-
postCollection
Post-collection callback.- Throws:
IOException
-
scoreMode
public abstract org.apache.lucene.search.ScoreMode scoreMode()Indicates what features are required from the scorer. -
asCollector
public final org.apache.lucene.search.Collector asCollector()Return this BucketCollector wrapped as aCollector
-