Class ValuesSourceRegistry
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSourceRegistry
public class ValuesSourceRegistry
extends java.lang.Object
ValuesSourceRegistry
holds the mapping from ValuesSourceType
s to AggregatorSupplier
s. DO NOT directly
instantiate this class, instead get an already-configured copy from QueryShardContext.getValuesSourceRegistry()
, or (in the case
of some test scenarios only) directly from SearchModule.getValuesSourceRegistry()
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValuesSourceRegistry.Builder
-
Constructor Summary
Constructors Constructor Description ValuesSourceRegistry(java.util.Map<java.lang.String,java.util.List<java.util.Map.Entry<ValuesSourceType,AggregatorSupplier>>> aggregatorRegistry, AggregationUsageService usageService)
-
Method Summary
Modifier and Type Method Description AggregatorSupplier
getAggregator(ValuesSourceConfig valuesSourceConfig, java.lang.String aggregationName)
AggregationUsageService
getUsageService()
boolean
isRegistered(java.lang.String aggregationName)
-
Constructor Details
-
ValuesSourceRegistry
public ValuesSourceRegistry(java.util.Map<java.lang.String,java.util.List<java.util.Map.Entry<ValuesSourceType,AggregatorSupplier>>> aggregatorRegistry, AggregationUsageService usageService)
-
-
Method Details
-
isRegistered
public boolean isRegistered(java.lang.String aggregationName) -
getAggregator
public AggregatorSupplier getAggregator(ValuesSourceConfig valuesSourceConfig, java.lang.String aggregationName) -
getUsageService
-