Class MissingAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
org.elasticsearch.search.aggregations.bucket.missing.MissingAggregatorFactory
public class MissingAggregatorFactory extends ValuesSourceAggregatorFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
AggregatorFactory.MultiBucketAggregatorWrapper
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
factories, metadata, name, parent, queryShardContext
-
Constructor Summary
Constructors Constructor Description MissingAggregatorFactory(java.lang.String name, ValuesSourceConfig config, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
Method Summary
Modifier and Type Method Description protected MissingAggregator
createUnmapped(SearchContext searchContext, Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata)
protected MissingAggregator
doCreateInternal(ValuesSource valuesSource, SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, java.util.Map<java.lang.String,java.lang.Object> metadata)
static void
registerAggregators(ValuesSourceRegistry.Builder builder)
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtype
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
asMultiBucketAggregator, create, doValidate, getParent, name
-
Constructor Details
-
MissingAggregatorFactory
public MissingAggregatorFactory(java.lang.String name, ValuesSourceConfig config, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
registerAggregators
-
createUnmapped
protected MissingAggregator createUnmapped(SearchContext searchContext, Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Specified by:
createUnmapped
in classValuesSourceAggregatorFactory
- Throws:
java.io.IOException
-
doCreateInternal
protected MissingAggregator doCreateInternal(ValuesSource valuesSource, SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Specified by:
doCreateInternal
in classValuesSourceAggregatorFactory
- Throws:
java.io.IOException
-