Class MissingAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
org.elasticsearch.search.aggregations.bucket.missing.MissingAggregatorFactory
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config -
Constructor Summary
ConstructorsConstructorDescriptionMissingAggregatorFactory(String name, ValuesSourceConfig config, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metadata, MissingAggregatorSupplier aggregatorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected MissingAggregatorcreateUnmapped(Aggregator parent, Map<String,Object> metadata)Create the Aggregator for aValuesSourcethat doesn't have values.protected AggregatordoCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String,Object> metadata)Create the Aggregator for aValuesSourcethat has values.static voidMethods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtypeMethods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, name
-
Constructor Details
-
MissingAggregatorFactory
public MissingAggregatorFactory(String name, ValuesSourceConfig config, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metadata, MissingAggregatorSupplier aggregatorSupplier) throws IOException- Throws:
IOException
-
-
Method Details
-
registerAggregators
-
createUnmapped
protected MissingAggregator createUnmapped(Aggregator parent, Map<String,Object> metadata) throws IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat doesn't have values.- Specified by:
createUnmappedin classValuesSourceAggregatorFactory- Throws:
IOException
-
doCreateInternal
protected Aggregator doCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String,Object> metadata) throws IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat has values.- Specified by:
doCreateInternalin classValuesSourceAggregatorFactorycardinality- Upper bound of the number ofowningBucketOrds that theAggregatorcreated by this method will be asked to collect.- Throws:
IOException
-