Module org.elasticsearch.server
Class AbstractHistogramBucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucketWritable
org.elasticsearch.search.aggregations.bucket.histogram.AbstractHistogramBucket
- All Implemented Interfaces:
Writeable,MultiBucketsAggregation.Bucket
- Direct Known Subclasses:
InternalDateHistogram.Bucket,InternalHistogram.Bucket,InternalVariableWidthHistogram.Bucket
public abstract class AbstractHistogramBucket
extends InternalMultiBucketAggregation.InternalBucketWritable
A bucket in the histogram where documents fall in
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InternalAggregationsprotected final longprotected final DocValueFormat -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractHistogramBucket(long docCount, InternalAggregations aggregations, DocValueFormat format) -
Method Summary
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket
getKey, getKeyAsString
-
Field Details
-
docCount
protected final long docCount -
aggregations
-
format
-
-
Constructor Details
-
AbstractHistogramBucket
protected AbstractHistogramBucket(long docCount, InternalAggregations aggregations, DocValueFormat format)
-
-
Method Details
-
getDocCount
public final long getDocCount()- Returns:
- The number of documents that fall within this bucket
-
getAggregations
- Returns:
- The sub-aggregations of this bucket
-
getFormatter
-