Class VariableWidthHistogramAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
org.elasticsearch.search.aggregations.bucket.histogram.VariableWidthHistogramAggregatorFactory
public class VariableWidthHistogramAggregatorFactory extends ValuesSourceAggregatorFactory
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
configFields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
factories, metadata, name, parent, queryShardContext -
Method Summary
Modifier and Type Method Description protected AggregatorcreateUnmapped(SearchContext searchContext, Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata)Create the Aggregator for aValuesSourcethat doesn't have values.protected AggregatordoCreateInternal(SearchContext searchContext, Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata)Create the Aggregator for aValuesSourcethat has values.static voidregisterAggregators(ValuesSourceRegistry.Builder builder)Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtypeMethods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, name
-
Method Details
-
registerAggregators
-
doCreateInternal
protected Aggregator doCreateInternal(SearchContext searchContext, Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat has values.- Specified by:
doCreateInternalin classValuesSourceAggregatorFactorycardinality- Upper bound of the number ofowningBucketOrds that theAggregatorcreated by this method will be asked to collect.- Throws:
java.io.IOException
-
createUnmapped
protected Aggregator createUnmapped(SearchContext searchContext, Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionDescription copied from class:ValuesSourceAggregatorFactoryCreate the Aggregator for aValuesSourcethat doesn't have values.- Specified by:
createUnmappedin classValuesSourceAggregatorFactory- Throws:
java.io.IOException
-