Class ParsedSignificantLongTerms.ParsedBucket

java.lang.Object
All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent, MultiBucketsAggregation.Bucket, SignificantTerms.Bucket, HasAggregations
Enclosing class:
ParsedSignificantLongTerms

public static class ParsedSignificantLongTerms.ParsedBucket
extends ParsedSignificantTerms.ParsedBucket
  • Constructor Details

    • ParsedBucket

      public ParsedBucket()
  • Method Details

    • getKey

      public java.lang.Object getKey()
      Returns:
      The key associated with the bucket
    • getKeyAsString

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

      public java.lang.Number getKeyAsNumber()
      Returns:
      The key, expressed as a number
    • keyToXContent

      protected org.elasticsearch.common.xcontent.XContentBuilder keyToXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder) throws java.io.IOException
      Specified by:
      keyToXContent in class ParsedSignificantTerms.ParsedBucket
      Throws:
      java.io.IOException