Class ParsedVariableWidthHistogram.ParsedBucket
java.lang.Object
org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
org.elasticsearch.search.aggregations.bucket.histogram.ParsedVariableWidthHistogram.ParsedBucket
- All Implemented Interfaces:
Histogram.Bucket,MultiBucketsAggregation.Bucket,HasAggregations,ToXContent
- Enclosing class:
- ParsedVariableWidthHistogram
public static class ParsedVariableWidthHistogram.ParsedBucket
extends ParsedMultiBucketAggregation.ParsedBucket
implements Histogram.Bucket
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()doublegetMax()doublegetMin()voidvoidsetMaxAsString(String maxAsString) voidvoidsetMinAsString(String minAsString) toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
getAggregations, getDocCount, isKeyed, keyToXContent, parseXContent, setAggregations, setDocCount, setKeyAsString, setKeyedMethods 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
getAggregations, getDocCountMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Constructor Details
-
ParsedBucket
public ParsedBucket()
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceMultiBucketsAggregation.Bucket- Returns:
- The key associated with the bucket
-
getKeyAsString
- Specified by:
getKeyAsStringin interfaceMultiBucketsAggregation.Bucket- Overrides:
getKeyAsStringin classParsedMultiBucketAggregation.ParsedBucket- Returns:
- The key associated with the bucket as a string
-
setMin
-
setMinAsString
-
getMin
public double getMin() -
getMinAsString
-
setMax
-
setMaxAsString
-
getMax
public double getMax() -
getMaxAsString
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classParsedMultiBucketAggregation.ParsedBucket- Throws:
IOException
-