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(ValuesSourceType valuesSourceType, java.lang.String aggregationName)AggregationUsageServicegetUsageService()ValuesSourceTypegetValuesSourceType(MappedFieldType fieldType, java.lang.String aggregationName, IndexFieldData<?> indexFieldData, ValueType valueType, ValuesSourceType defaultValuesSourceType)
-
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
-
getAggregator
public AggregatorSupplier getAggregator(ValuesSourceType valuesSourceType, java.lang.String aggregationName) -
getValuesSourceType
public ValuesSourceType getValuesSourceType(MappedFieldType fieldType, java.lang.String aggregationName, IndexFieldData<?> indexFieldData, ValueType valueType, ValuesSourceType defaultValuesSourceType) -
getUsageService
-