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 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
Nested Classes Modifier and Type Class Description static class
ValuesSourceRegistry.Builder
static class
ValuesSourceRegistry.RegistryKey<T>
-
Field Summary
Fields Modifier and Type Field Description static ValuesSourceRegistry.RegistryKey
UNREGISTERED_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> T
getAggregator(ValuesSourceRegistry.RegistryKey<T> registryKey, ValuesSourceConfig valuesSourceConfig)
AggregationUsageService
getUsageService()
boolean
isRegistered(ValuesSourceRegistry.RegistryKey<?> registryKey)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
UNREGISTERED_KEY
-
-
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
-