Module org.elasticsearch.server
Class MultiValuesSourceAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.MultiValuesSourceAggregatorFactory
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<String,ValuesSourceConfig> protected final DocValueFormat
- 
Constructor SummaryConstructorsConstructorDescriptionMultiValuesSourceAggregatorFactory(String name, Map<String, ValuesSourceConfig> configs, DocValueFormat format, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String, Object> metadata) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) protected abstract AggregatorcreateUnmapped(Aggregator parent, Map<String, Object> metadata) Create an aggregator that won't collect anything but will return an appropriate empty aggregation.protected abstract AggregatordoCreateInternal(Map<String, ValuesSourceConfig> configs, DocValueFormat format, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) Create the Aggregator.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactorycreate, doValidate, getParent, getSamplingContext, getStatsSubtype, name
- 
Field Details- 
configs
- 
format
 
- 
- 
Constructor Details- 
MultiValuesSourceAggregatorFactorypublic MultiValuesSourceAggregatorFactory(String name, Map<String, ValuesSourceConfig> configs, DocValueFormat format, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String, throws IOExceptionObject> metadata) - Throws:
- IOException
 
 
- 
- 
Method Details- 
createInternalpublic Aggregator createInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException- Specified by:
- createInternalin class- AggregatorFactory
- Throws:
- IOException
 
- 
createUnmappedprotected abstract Aggregator createUnmapped(Aggregator parent, Map<String, Object> metadata) throws IOExceptionCreate an aggregator that won't collect anything but will return an appropriate empty aggregation.- Throws:
- IOException
 
- 
doCreateInternalprotected abstract Aggregator doCreateInternal(Map<String, ValuesSourceConfig> configs, DocValueFormat format, Aggregator parent, CardinalityUpperBound cardinality, Map<String, throws IOExceptionObject> metadata) Create the Aggregator.- Parameters:
- cardinality- Upper bound of the number of- owningBucketOrds that the- Aggregatorcreated by this method will be asked to collect.
- Throws:
- IOException
 
 
-