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.ParamsNested 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, toFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
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, 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, writeToMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
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)
-
getFactory
- Overrides:
getFactoryin classInternalRange.Bucket
-