Class SampledAggregate

All Implemented Interfaces:
NamedWriteable, Writeable, PostAnalysisVerificationAware, TelemetryAware, Resolvable, ExecutesOn, ExecutesOn.Coordinator, PipelineBreaker, SortAgnostic

public class SampledAggregate extends Aggregate
Aggregate, which upon execution is either:
  • sampled with the sampleProbability for fast execution; or
  • replaced by an exact aggregate if the originalAggregates can be pushed down to Lucene.