Class AutoDateHistogramAggregatorFactory
- java.lang.Object
-
- org.elasticsearch.search.aggregations.AggregatorFactory
-
- org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory<ValuesSource.Numeric>
-
- org.elasticsearch.search.aggregations.bucket.histogram.AutoDateHistogramAggregatorFactory
-
public final class AutoDateHistogramAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource.Numeric>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
AggregatorFactory.MultiBucketAggregatorWrapper
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config
-
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
factories, metaData, name, parent, queryShardContext
-
-
Constructor Summary
Constructors Constructor Description AutoDateHistogramAggregatorFactory(String name, ValuesSourceConfig<ValuesSource.Numeric> config, int numBuckets, AutoDateHistogramAggregationBuilder.RoundingInfo[] roundingInfos, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AggregatorcreateUnmapped(SearchContext searchContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)protected AggregatordoCreateInternal(ValuesSource.Numeric valuesSource, SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, resolveMissingAny
-
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
asMultiBucketAggregator, create, doValidate, getParent, name
-
-
-
-
Constructor Detail
-
AutoDateHistogramAggregatorFactory
public AutoDateHistogramAggregatorFactory(String name, ValuesSourceConfig<ValuesSource.Numeric> config, int numBuckets, AutoDateHistogramAggregationBuilder.RoundingInfo[] roundingInfos, QueryShardContext queryShardContext, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String,Object> metaData) throws IOException
- Throws:
IOException
-
-
Method Detail
-
doCreateInternal
protected Aggregator doCreateInternal(ValuesSource.Numeric valuesSource, SearchContext searchContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
- Specified by:
doCreateInternalin classValuesSourceAggregatorFactory<ValuesSource.Numeric>- Throws:
IOException
-
createUnmapped
protected Aggregator createUnmapped(SearchContext searchContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
- Specified by:
createUnmappedin classValuesSourceAggregatorFactory<ValuesSource.Numeric>- Throws:
IOException
-
-