Class ValuesSourceRegistry
org.elasticsearch.search.aggregations.support.ValuesSourceRegistry
public class ValuesSourceRegistry
extends
ValuesSourceRegistry
holds the mapping from ValuesSourceType
s to functions for building aggregation components. DO NOT
directly instantiate this class, instead get an already-configured copy from SearchExecutionContext.getValuesSourceRegistry()
,
or (in the case of some test scenarios only) directly from SearchModule.getValuesSourceRegistry()
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescription<<<ValuesSourceType,?>>> aggregatorRegistry, AggregationUsageService usageService)
-
Method Summary
Modifier and TypeMethodDescription<T> T
getAggregator(ValuesSourceRegistry.RegistryKey<T> registryKey, ValuesSourceConfig valuesSourceConfig)
boolean
isRegistered(ValuesSourceRegistry.RegistryKey<?> registryKey)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
UNREGISTERED_KEY
-
-
Constructor Details
-
ValuesSourceRegistry
public ValuesSourceRegistry(<<<ValuesSourceType,?>>> aggregatorRegistry, AggregationUsageService usageService)
-
-
Method Details
-
isRegistered
-
getAggregator
public <T> T getAggregator(ValuesSourceRegistry.RegistryKey<T> registryKey, ValuesSourceConfig valuesSourceConfig) -
getUsageService
-