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 AggregatorSuppliers. 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.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 AggregatorSuppliergetAggregator(ValuesSourceConfig valuesSourceConfig, java.lang.String aggregationName)AggregationUsageServicegetUsageService()booleanisRegistered(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
-