Class SearchContextAggregations

java.lang.Object
org.elasticsearch.search.aggregations.SearchContextAggregations

public class SearchContextAggregations
extends java.lang.Object
The aggregation context that is part of the search context.
  • Constructor Summary

    Constructors
    Constructor Description
    SearchContextAggregations​(AggregatorFactories factories)
    Creates a new aggregation context with the parsed aggregator factories
  • Method Summary

    Modifier and Type Method Description
    Aggregator[] aggregators()  
    void aggregators​(Aggregator[] aggregators)
    Registers all the created aggregators (top level aggregators) for the search execution context.
    AggregatorFactories factories()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SearchContextAggregations

      public SearchContextAggregations​(AggregatorFactories factories)
      Creates a new aggregation context with the parsed aggregator factories
  • Method Details

    • factories

      public AggregatorFactories factories()
    • aggregators

      public Aggregator[] aggregators()
    • aggregators

      public void aggregators​(Aggregator[] aggregators)
      Registers all the created aggregators (top level aggregators) for the search execution context.
      Parameters:
      aggregators - The top level aggregators of the search execution.