Class ArrayValuesSourceAggregatorFactory

java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.matrix.ArrayValuesSourceAggregatorFactory

public abstract class ArrayValuesSourceAggregatorFactory extends org.elasticsearch.search.aggregations.AggregatorFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Map<String,org.elasticsearch.search.aggregations.support.ValuesSourceConfig>
     

    Fields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory

    context, factories, metadata, name, parent
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArrayValuesSourceAggregatorFactory(String name, Map<String,org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs, org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metadata)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.elasticsearch.search.aggregations.Aggregator
    createInternal(org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, Map<String,Object> metadata)
     
    protected abstract org.elasticsearch.search.aggregations.Aggregator
    createUnmapped(org.elasticsearch.search.aggregations.Aggregator parent, Map<String,Object> metadata)
    Create the Aggregator when none of the configured fields can be resolved to a ValuesSource.
    protected abstract org.elasticsearch.search.aggregations.Aggregator
    doCreateInternal(Map<String,org.elasticsearch.search.aggregations.support.ValuesSource> valuesSources, org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, Map<String,Object> metadata)
    Create the Aggregator when any of the configured fields can be resolved to a ValuesSource.

    Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory

    create, doValidate, getParent, getStatsSubtype, name

    Methods inherited from class java.lang.Object

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

    • configs

      protected Map<String,org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs
  • Constructor Details

    • ArrayValuesSourceAggregatorFactory

      public ArrayValuesSourceAggregatorFactory(String name, Map<String,org.elasticsearch.search.aggregations.support.ValuesSourceConfig> configs, org.elasticsearch.search.aggregations.support.AggregationContext context, org.elasticsearch.search.aggregations.AggregatorFactory parent, org.elasticsearch.search.aggregations.AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metadata) throws IOException
      Throws:
      IOException
  • Method Details

    • createInternal

      public org.elasticsearch.search.aggregations.Aggregator createInternal(org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, Map<String,Object> metadata) throws IOException
      Specified by:
      createInternal in class org.elasticsearch.search.aggregations.AggregatorFactory
      Throws:
      IOException
    • createUnmapped

      protected abstract org.elasticsearch.search.aggregations.Aggregator createUnmapped(org.elasticsearch.search.aggregations.Aggregator parent, Map<String,Object> metadata) throws IOException
      Create the Aggregator when none of the configured fields can be resolved to a ValuesSource.
      Throws:
      IOException
    • doCreateInternal

      protected abstract org.elasticsearch.search.aggregations.Aggregator doCreateInternal(Map<String,org.elasticsearch.search.aggregations.support.ValuesSource> valuesSources, org.elasticsearch.search.aggregations.Aggregator parent, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, Map<String,Object> metadata) throws IOException
      Create the Aggregator when any of the configured fields can be resolved to a ValuesSource.
      Parameters:
      cardinality - Upper bound of the number of owningBucketOrds that the Aggregator created by this method will be asked to collect.
      Throws:
      IOException