Class DeferringBucketCollector
java.lang.Object
org.opensearch.search.aggregations.BucketCollector
org.opensearch.search.aggregations.bucket.DeferringBucketCollector
- All Implemented Interfaces:
org.apache.lucene.search.Collector
- Direct Known Subclasses:
BestBucketsDeferringCollector
,BestDocsDeferringCollector
A
BucketCollector
that records collected doc IDs and buckets and
allows to replay a subset of the collected buckets.- Opensearch.internal:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
A wrapped aggregator -
Field Summary
Fields inherited from class org.opensearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
prepareSelectedBuckets
(long... selectedBuckets) Replay the deferred hits on the selected buckets.abstract void
setDeferredCollector
(Iterable<BucketCollector> deferredCollectors) Set the deferred collectors.wrap
(Aggregator in) Wrap the provided aggregator so that it behaves (almost) as if it had been collected directly.Methods inherited from class org.opensearch.search.aggregations.BucketCollector
getLeafCollector, postCollection, preCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.search.Collector
scoreMode, setWeight
-
Constructor Details
-
DeferringBucketCollector
public DeferringBucketCollector()Sole constructor.
-
-
Method Details
-
setDeferredCollector
Set the deferred collectors. -
prepareSelectedBuckets
Replay the deferred hits on the selected buckets.- Throws:
IOException
-
wrap
Wrap the provided aggregator so that it behaves (almost) as if it had been collected directly.
-