Interface CompositeAggregation

All Superinterfaces:
Aggregation, MultiBucketsAggregation, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
All Known Implementing Classes:
InternalComposite, ParsedComposite

public interface CompositeAggregation extends MultiBucketsAggregation
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     

    Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation

    Aggregation.CommonFields

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation

    TYPED_KEYS_DELIMITER

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Method Summary

    Modifier and Type
    Method
    Description
    <,​>
    Returns the last key in this aggregation.
    static org.elasticsearch.common.xcontent.XContentBuilder
    bucketToXContent​(CompositeAggregation.Bucket bucket, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     
    static void
     fieldName, <,​> composite, org.elasticsearch.common.xcontent.XContentBuilder builder)
     
     
    static org.elasticsearch.common.xcontent.XContentBuilder
    toXContentFragment​(CompositeAggregation aggregation, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
     

    Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation

    getMetadata, getName, getType

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent

    toXContent

    Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Method Details

    • getBuckets

      <? extends CompositeAggregation.Bucket> getBuckets()
      Specified by:
      getBuckets in interface MultiBucketsAggregation
      Returns:
      The buckets of this aggregation.
    • afterKey

      <,​> afterKey()
      Returns the last key in this aggregation. It can be used to retrieve the buckets that are after these values. See CompositeAggregationBuilder.aggregateAfter(java.util.Map<java.lang.String, java.lang.Object>).
    • bucketToXContent

      static org.elasticsearch.common.xcontent.XContentBuilder bucketToXContent(CompositeAggregation.Bucket bucket, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Throws:
    • toXContentFragment

      static org.elasticsearch.common.xcontent.XContentBuilder toXContentFragment(CompositeAggregation aggregation, org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Throws:
    • buildCompositeMap

      static void buildCompositeMap( fieldName, <,​> composite, org.elasticsearch.common.xcontent.XContentBuilder builder) throws
      Throws: