Class ParsedComposite.ParsedBucket
java.lang.Object
org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
org.elasticsearch.search.aggregations.bucket.composite.ParsedComposite.ParsedBucket
- All Implemented Interfaces:
ToXContent,CompositeAggregation.Bucket,MultiBucketsAggregation.Bucket,HasAggregations
- Enclosing class:
- ParsedComposite
public static class ParsedComposite.ParsedBucket extends ParsedMultiBucketAggregation.ParsedBucket implements CompositeAggregation.Bucket
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
-
Constructor Summary
Constructors Constructor Description ParsedBucket() -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getKey()java.lang.StringgetKeyAsString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)Methods inherited from class org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation.ParsedBucket
getAggregations, getDocCount, isKeyed, keyToXContent, parseXContent, setAggregations, setDocCount, setKeyAsString, setKeyedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket
getAggregations, getDocCount
-
Constructor Details
-
ParsedBucket
public ParsedBucket()
-
-
Method Details
-
getKeyAsString
public java.lang.String getKeyAsString()- Specified by:
getKeyAsStringin interfaceMultiBucketsAggregation.Bucket- Overrides:
getKeyAsStringin classParsedMultiBucketAggregation.ParsedBucket- Returns:
- The key associated with the bucket as a string
-
getKey
public java.util.Map<java.lang.String,java.lang.Object> getKey()- Specified by:
getKeyin interfaceCompositeAggregation.Bucket- Specified by:
getKeyin interfaceMultiBucketsAggregation.Bucket- Returns:
- The key associated with the bucket
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classParsedMultiBucketAggregation.ParsedBucket- Throws:
java.io.IOException
-