Module org.elasticsearch.server
Class InternalDateRange.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucketWritable
org.elasticsearch.search.aggregations.bucket.range.InternalRange.Bucket
org.elasticsearch.search.aggregations.bucket.range.InternalDateRange.Bucket
- All Implemented Interfaces:
Writeable,MultiBucketsAggregation.Bucket,Range.Bucket,HasAggregations
- Enclosing class:
InternalDateRange
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.range.InternalRange.Bucket
format, from, to -
Constructor Summary
ConstructorsConstructorDescriptionBucket(String key, double from, double to, long docCount, List<InternalAggregation> aggregations, boolean keyed, DocValueFormat formatter) Bucket(String key, double from, double to, long docCount, InternalAggregations aggregations, DocValueFormat formatter) -
Method Summary
Methods inherited from class org.elasticsearch.search.aggregations.bucket.range.InternalRange.Bucket
bucketToXContent, equals, getAggregations, getDocCount, getFormat, getFromAsString, getKey, getKeyAsString, getToAsString, hashCode, writeToMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getProperty
-
Constructor Details
-
Bucket
public Bucket(String key, double from, double to, long docCount, List<InternalAggregation> aggregations, boolean keyed, DocValueFormat formatter) -
Bucket
public Bucket(String key, double from, double to, long docCount, InternalAggregations aggregations, DocValueFormat formatter)
-
-
Method Details
-
getFrom
- Specified by:
getFromin interfaceRange.Bucket- Overrides:
getFromin classInternalRange.Bucket- Returns:
- The lower bound of the range
-
getTo
- Specified by:
getToin interfaceRange.Bucket- Overrides:
getToin classInternalRange.Bucket- Returns:
- The upper bound of the range (excluding)
-