Class InternalDateRange.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.range.InternalRange.Bucket
org.elasticsearch.search.aggregations.bucket.range.InternalDateRange.Bucket
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,MultiBucketsAggregation.Bucket
,Range.Bucket
,HasAggregations
- Enclosing class:
- InternalDateRange
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
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, keyed, to
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionBucket(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, boolean keyed, DocValueFormat formatter)
-
Method Summary
Modifier and TypeMethodDescriptionprotected InternalRange.Factory<InternalDateRange.Bucket,?>
getFrom()
getTo()
Methods inherited from class org.elasticsearch.search.aggregations.bucket.range.InternalRange.Bucket
equals, getAggregations, getDocCount, getFormat, getFromAsString, getKey, getKeyAsString, getKeyed, getToAsString, hashCode, toXContent, writeTo
Methods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getProperty
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment
-
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, boolean keyed, DocValueFormat formatter)
-
-
Method Details
-
getFrom
- Specified by:
getFrom
in interfaceRange.Bucket
- Overrides:
getFrom
in classInternalRange.Bucket
- Returns:
- The lower bound of the range
-
getTo
- Specified by:
getTo
in interfaceRange.Bucket
- Overrides:
getTo
in classInternalRange.Bucket
- Returns:
- The upper bound of the range (excluding)
-
getFactory
- Overrides:
getFactory
in classInternalRange.Bucket
-