Class DeferringBucketCollector

All Implemented Interfaces:
Direct Known Subclasses:
BestBucketsDeferringCollector, BestDocsDeferringCollector

public abstract class DeferringBucketCollector extends BucketCollector
A BucketCollector that records collected doc IDs and buckets and allows to replay a subset of the collected buckets.
  • Constructor Details

    • DeferringBucketCollector

      public DeferringBucketCollector()
      Sole constructor.
  • Method Details

    • setDeferredCollector

      public abstract void setDeferredCollector(Iterable<BucketCollector> deferredCollectors)
      Set the deferred collectors.
    • prepareSelectedBuckets

      public abstract void prepareSelectedBuckets(long... selectedBuckets) throws IOException
      Replay the deferred hits on the selected buckets.
    • wrap

      public Aggregator wrap(Aggregator in)
      Wrap the provided aggregator so that it behaves (almost) as if it had been collected directly.