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
,ToXContent
,MultiBucketsAggregation.Bucket
,Range.Bucket
,HasAggregations
- Enclosing class:
- InternalDateRange
public static class InternalDateRange.Bucket extends InternalRange.Bucket
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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
Constructors Constructor Description Bucket(java.lang.String key, double from, double to, long docCount, java.util.List<InternalAggregation> aggregations, boolean keyed, DocValueFormat formatter)
Bucket(java.lang.String key, double from, double to, long docCount, InternalAggregations aggregations, boolean keyed, DocValueFormat formatter)
-
Method Summary
Modifier and Type Method Description protected InternalRange.Factory<InternalDateRange.Bucket,?>
getFactory()
java.lang.Object
getFrom()
java.lang.Object
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 Detail
-
Bucket
public Bucket(java.lang.String key, double from, double to, long docCount, java.util.List<InternalAggregation> aggregations, boolean keyed, DocValueFormat formatter)
-
Bucket
public Bucket(java.lang.String key, double from, double to, long docCount, InternalAggregations aggregations, boolean keyed, DocValueFormat formatter)
-
-
Method Detail
-
getFrom
public java.lang.Object getFrom()
- Specified by:
getFrom
in interfaceRange.Bucket
- Overrides:
getFrom
in classInternalRange.Bucket
- Returns:
- The lower bound of the range
-
getTo
public java.lang.Object getTo()
- Specified by:
getTo
in interfaceRange.Bucket
- Overrides:
getTo
in classInternalRange.Bucket
- Returns:
- The upper bound of the range (excluding)
-
getFactory
protected InternalRange.Factory<InternalDateRange.Bucket,?> getFactory()
- Overrides:
getFactory
in classInternalRange.Bucket
-
-