Class InternalAggregations

java.lang.Object
org.elasticsearch.search.aggregations.Aggregations
org.elasticsearch.search.aggregations.InternalAggregations
All Implemented Interfaces:
java.lang.Iterable<Aggregation>, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public final class InternalAggregations
extends Aggregations
implements Writeable
An internal implementation of Aggregations.
  • Field Details

  • Constructor Details

    • InternalAggregations

      public InternalAggregations​(java.util.List<InternalAggregation> aggregations, java.util.function.Supplier<PipelineAggregator.PipelineTree> pipelineTreeSource)
      Constructs a node in the aggregation tree.
      Parameters:
      pipelineTreeSource - must be null inside the tree or after final reduction. Should reference the search request otherwise so we can properly serialize the response to versions of Elasticsearch that require the pipelines to be serialized.
  • Method Details