All Implemented Interfaces:
Aggregation, MultiBucketsAggregation, Terms, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment
Direct Known Subclasses:
ParsedDoubleTerms, ParsedLongTerms, ParsedStringTerms

public abstract class ParsedTerms extends ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket> implements Terms
  • Field Details

    • docCountErrorUpperBound

      protected long docCountErrorUpperBound
    • sumOtherDocCount

      protected long sumOtherDocCount
  • Constructor Details

    • ParsedTerms

      public ParsedTerms()
  • Method Details

    • getDocCountError

      public Long getDocCountError()
      Description copied from interface: Terms
      Get an upper bound of the error on document counts in this aggregation.
      Specified by:
      getDocCountError in interface Terms
    • getSumOfOtherDocCounts

      public long getSumOfOtherDocCounts()
      Description copied from interface: Terms
      Return the sum of the document counts of all buckets that did not make it to the top buckets.
      Specified by:
      getSumOfOtherDocCounts in interface Terms
    • getBuckets

      public List<? extends Terms.Bucket> getBuckets()
      Description copied from interface: Terms
      Return the sorted list of the buckets in this terms aggregation.
      Specified by:
      getBuckets in interface MultiBucketsAggregation
      Specified by:
      getBuckets in interface Terms
      Returns:
      The buckets of this aggregation.
    • getBucketByKey

      public Terms.Bucket getBucketByKey(String term)
      Description copied from interface: Terms
      Get the bucket for the given term, or null if there is no such bucket.
      Specified by:
      getBucketByKey in interface Terms
    • doXContentBody

      protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Overrides:
      doXContentBody in class ParsedMultiBucketAggregation<ParsedTerms.ParsedBucket>
      Throws:
      IOException