Module org.elasticsearch.server
Class AbstractHistogramAggregator
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.Aggregator
org.elasticsearch.search.aggregations.AggregatorBase
org.elasticsearch.search.aggregations.bucket.BucketsAggregator
org.elasticsearch.search.aggregations.bucket.histogram.AbstractHistogramAggregator
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Releasable
- Direct Known Subclasses:
- NumericHistogramAggregator,- RangeHistogramAggregator
Base class for functionality shared between aggregators for this
 
histogram aggregation.- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregatorBucketsAggregator.BucketBuilderForFixedCount<B>, BucketsAggregator.BucketBuilderForVariable<B>, BucketsAggregator.ResultBuilderForVariable<B>, BucketsAggregator.SingleBucketResultBuilderNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregatorAggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final LongKeyedBucketOrdsprotected final DoubleBoundsprotected final DocValueFormatprotected final DoubleBoundsprotected final doubleprotected final booleanprotected final longprotected final doubleprotected final BucketOrderFields inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregatordocCountProviderFields inherited from class org.elasticsearch.search.aggregations.AggregatorBasecollectableSubAggregators, DEFAULT_WEIGHT, name, parent, subAggregatorsFields inherited from class org.elasticsearch.search.aggregations.BucketCollectorNO_OP_BUCKET_COLLECTOR, NO_OP_COLLECTOR
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractHistogramAggregator(String name, AggregatorFactories factories, double interval, double offset, BucketOrder order, boolean keyed, long minDocCount, DoubleBounds extendedBounds, DoubleBounds hardBounds, DocValueFormat formatter, AggregationContext context, Aggregator parent, CardinalityUpperBound cardinalityUpperBound, Map<String, Object> metadata) 
- 
Method SummaryModifier and TypeMethodDescriptionbuildAggregations(long[] owningBucketOrds) Build the results of this aggregation.Build an empty aggregation.voidCollect debug information to add to the profiling results.voiddoClose()Release instance-specific data.Methods inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregatorbucketComparator, bucketDocCount, buildAggregationsForFixedBucketCount, buildAggregationsForSingleBucket, buildAggregationsForVariableBuckets, buildSubAggsForAllBuckets, buildSubAggsForBuckets, buildSubAggsForBuckets, close, collectBucket, collectExistingBucket, descendsFromGlobalAggregator, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd, preGetSubLeafCollectors, prepareSubAggs, resolveSortPath, rewriteBucketsMethods inherited from class org.elasticsearch.search.aggregations.AggregatorBaseaddRequestCircuitBreakerBytes, bigArrays, buildEmptySubAggregations, doPostCollection, doPreCollection, getLeafCollector, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, scoreMode, searcher, subAggregator, subAggregators, topLevelQuery, toStringMethods inherited from class org.elasticsearch.search.aggregations.AggregatorbuildTopLevel, resolveSortPathOnValidAggMethods inherited from class org.elasticsearch.search.aggregations.BucketCollectorasCollector
- 
Field Details- 
formatter
- 
intervalprotected final double interval
- 
offsetprotected final double offset
- 
order
- 
keyedprotected final boolean keyed
- 
minDocCountprotected final long minDocCount
- 
extendedBounds
- 
hardBounds
- 
bucketOrds
 
- 
- 
Constructor Details- 
AbstractHistogramAggregatorpublic AbstractHistogramAggregator(String name, AggregatorFactories factories, double interval, double offset, BucketOrder order, boolean keyed, long minDocCount, DoubleBounds extendedBounds, DoubleBounds hardBounds, DocValueFormat formatter, AggregationContext context, Aggregator parent, CardinalityUpperBound cardinalityUpperBound, Map<String, Object> metadata) throws IOException- Throws:
- IOException
 
 
- 
- 
Method Details- 
buildAggregationsDescription copied from class:AggregatorBuild the results of this aggregation.- Specified by:
- buildAggregationsin class- Aggregator
- Parameters:
- owningBucketOrds- the ordinals of the buckets that we want to collect from this aggregation
- Returns:
- the results for each ordinal, in the same order as the array of ordinals
- Throws:
- IOException
 
- 
buildEmptyAggregationDescription copied from class:AggregatorBuild an empty aggregation.- Specified by:
- buildEmptyAggregationin class- Aggregator
 
- 
doClosepublic void doClose()Description copied from class:AggregatorBaseRelease instance-specific data.- Overrides:
- doClosein class- AggregatorBase
 
- 
collectDebugInfoDescription copied from class:AggregatorCollect debug information to add to the profiling results. This will only be called if the aggregation is being profiled.Well behaved implementations will always call the superclass implementation just in case it has something interesting. They will also only add objects which can be serialized with StreamOutput.writeGenericValue(Object)andXContentBuilder.value(Object). And they'll have an integration test.- Overrides:
- collectDebugInfoin class- Aggregator
 
 
-