Class ParsedRange.ParsedBucket

org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
org.elasticsearch.search.aggregations.bucket.range.ParsedRange.ParsedBucket
All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent, MultiBucketsAggregation.Bucket, Range.Bucket, HasAggregations
Direct Known Subclasses:
ParsedDateRange.ParsedBucket, ParsedGeoDistance.ParsedBucket
Enclosing class:
ParsedRange

public static class ParsedRange.ParsedBucket extends ParsedMultiBucketAggregation.ParsedBucket implements Range.Bucket
  • Field Details

    • key

      protected  key
    • from

      protected double from
    • fromAsString

      protected  fromAsString
    • to

      protected double to
    • toAsString

      protected  toAsString
  • Constructor Details

    • ParsedBucket

      public ParsedBucket()
  • Method Details

    • getKey

      public  getKey()
      Specified by:
      getKey in interface MultiBucketsAggregation.Bucket
      Returns:
      The key associated with the bucket
    • getKeyAsString

      public  getKeyAsString()
      Specified by:
      getKeyAsString in interface MultiBucketsAggregation.Bucket
      Overrides:
      getKeyAsString in class ParsedMultiBucketAggregation.ParsedBucket
      Returns:
      The key associated with the bucket as a string
    • getFrom

      public  getFrom()
      Specified by:
      getFrom in interface Range.Bucket
      Returns:
      The lower bound of the range
    • getFromAsString

      public  getFromAsString()
      Specified by:
      getFromAsString in interface Range.Bucket
      Returns:
      The string value for the lower bound of the range
    • getTo

      public  getTo()
      Specified by:
      getTo in interface Range.Bucket
      Returns:
      The upper bound of the range (excluding)
    • getToAsString

      public  getToAsString()
      Specified by:
      getToAsString in interface Range.Bucket
      Returns:
      The string value for the upper bound of the range (excluding)
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Overrides:
      toXContent in class ParsedMultiBucketAggregation.ParsedBucket
      Throws:
    • parseRangeBucketXContent

      protected static <B extends ParsedRange.ParsedBucket> B parseRangeBucketXContent(org.elasticsearch.common.xcontent.XContentParser parser, <B> bucketSupplier, boolean keyed) throws
      Throws: