Class ValuesSourceRegistry
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSourceRegistry
public class ValuesSourceRegistry
extends java.lang.Object
ValuesSourceRegistry holds the mapping from ValuesSourceTypes to functions for building aggregation components. 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 classValuesSourceRegistry.Builderstatic classValuesSourceRegistry.RegistryKey<T> -
Field Summary
Fields Modifier and Type Field Description static ValuesSourceRegistry.RegistryKeyUNREGISTERED_KEY -
Constructor Summary
Constructors Constructor Description ValuesSourceRegistry(java.util.Map<ValuesSourceRegistry.RegistryKey<?>,java.util.List<java.util.Map.Entry<ValuesSourceType,?>>> aggregatorRegistry, AggregationUsageService usageService) -
Method Summary
Modifier and Type Method Description <T> TgetAggregator(ValuesSourceRegistry.RegistryKey<T> registryKey, ValuesSourceConfig valuesSourceConfig)AggregationUsageServicegetUsageService()booleanisRegistered(ValuesSourceRegistry.RegistryKey<?> registryKey)
-
Field Details
-
Constructor Details
-
ValuesSourceRegistry
public ValuesSourceRegistry(java.util.Map<ValuesSourceRegistry.RegistryKey<?>,java.util.List<java.util.Map.Entry<ValuesSourceType,?>>> aggregatorRegistry, AggregationUsageService usageService)
-
-
Method Details
-
isRegistered
-
getAggregator
public <T> T getAggregator(ValuesSourceRegistry.RegistryKey<T> registryKey, ValuesSourceConfig valuesSourceConfig) -
getUsageService
-