Class ValuesSourceAggregatorFactory

java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
Direct Known Subclasses:
AbstractRangeAggregatorFactory, AutoDateHistogramAggregatorFactory, BinaryRangeAggregatorFactory, DateHistogramAggregatorFactory, DiversifiedAggregatorFactory, GeoDistanceRangeAggregatorFactory, GeoHashGridAggregatorFactory, GeoTileGridAggregatorFactory, HistogramAggregatorFactory, MedianAbsoluteDeviationAggregatorFactory, MissingAggregatorFactory, RareTermsAggregatorFactory, SignificantTermsAggregatorFactory, TermsAggregatorFactory, VariableWidthHistogramAggregatorFactory

public abstract class ValuesSourceAggregatorFactory
extends AggregatorFactory
  • Field Details

  • Constructor Details

  • Method Details

    • createInternal

      public Aggregator createInternal​(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,​java.lang.Object> metadata) throws java.io.IOException
      Specified by:
      createInternal in class AggregatorFactory
      Throws:
      java.io.IOException
    • createUnmapped

      protected abstract Aggregator createUnmapped​(Aggregator parent, java.util.Map<java.lang.String,​java.lang.Object> metadata) throws java.io.IOException
      Create the Aggregator for a ValuesSource that doesn't have values.
      Throws:
      java.io.IOException
    • doCreateInternal

      protected abstract Aggregator doCreateInternal​(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,​java.lang.Object> metadata) throws java.io.IOException
      Create the Aggregator for a ValuesSource that has values.
      Parameters:
      cardinality - Upper bound of the number of owningBucketOrds that the Aggregator created by this method will be asked to collect.
      Throws:
      java.io.IOException
    • getStatsSubtype

      public java.lang.String getStatsSubtype()
      Description copied from class: AggregatorFactory
      Returns the aggregation subtype for nodes usage stats.

      It should match the types registered by calling AggregationUsageService. In other words, it should be ValueSourcesType for the VST aggregations OTHER_SUBTYPE for all other aggregations.

      Overrides:
      getStatsSubtype in class AggregatorFactory