Module org.elasticsearch.server
Interface CompositeAggregation
- All Superinterfaces:
Aggregation,MultiBucketsAggregation,ToXContent,ToXContentFragment
- All Known Implementing Classes:
InternalComposite
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionafterKey()Returns the last key in this aggregation.static XContentBuilderbucketToXContent(CompositeAggregation.Bucket bucket, XContentBuilder builder, ToXContent.Params params) static voidbuildCompositeMap(String fieldName, Map<String, Object> composite, XContentBuilder builder) List<? extends CompositeAggregation.Bucket> static XContentBuildertoXContentFragment(CompositeAggregation aggregation, XContentBuilder builder, ToXContent.Params params) Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getTypeMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Method Details
-
getBuckets
List<? extends CompositeAggregation.Bucket> getBuckets()- Specified by:
getBucketsin interfaceMultiBucketsAggregation- Returns:
- The buckets of this aggregation.
-
afterKey
Returns the last key in this aggregation. It can be used to retrieve the buckets that are after these values. SeeCompositeAggregationBuilder.aggregateAfter(java.util.Map<java.lang.String, java.lang.Object>). -
bucketToXContent
static XContentBuilder bucketToXContent(CompositeAggregation.Bucket bucket, XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
toXContentFragment
static XContentBuilder toXContentFragment(CompositeAggregation aggregation, XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
buildCompositeMap
static void buildCompositeMap(String fieldName, Map<String, Object> composite, XContentBuilder builder) throws IOException- Throws:
IOException
-