Class ParsedMultiBucketAggregation<B extends MultiBucketsAggregation.Bucket>
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.ParsedMultiBucketAggregation<B>
- All Implemented Interfaces:
Aggregation
,MultiBucketsAggregation
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
ParsedAdjacencyMatrix
,ParsedAutoDateHistogram
,ParsedBinaryRange
,ParsedComposite
,ParsedDateHistogram
,ParsedFilters
,ParsedGeoGrid
,ParsedHistogram
,ParsedRange
,ParsedRareTerms
,ParsedSignificantTerms
,ParsedTerms
,ParsedVariableWidthHistogram
public abstract class ParsedMultiBucketAggregation<B extends MultiBucketsAggregation.Bucket>
extends ParsedAggregation
implements MultiBucketsAggregation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation
MultiBucketsAggregation.Bucket
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadata
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends ParsedMultiBucketAggregation<T>,
T extends ParsedMultiBucketAggregation.ParsedBucket>
voiddeclareMultiBucketAggregationFields
(ObjectParser<A, Void> objectParser, CheckedFunction<XContentParser, T, IOException> bucketParser, CheckedFunction<XContentParser, T, IOException> keyedBucketParser) protected XContentBuilder
doXContentBody
(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetadata, getName, parseDouble, setName, toXContent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation
getBuckets
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
buckets
-
keyed
protected boolean keyed
-
-
Constructor Details
-
ParsedMultiBucketAggregation
public ParsedMultiBucketAggregation()
-
-
Method Details
-
doXContentBody
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
doXContentBody
in classParsedAggregation
- Throws:
IOException
-
declareMultiBucketAggregationFields
public static <A extends ParsedMultiBucketAggregation<T>,T extends ParsedMultiBucketAggregation.ParsedBucket> void declareMultiBucketAggregationFields(ObjectParser<A, Void> objectParser, CheckedFunction<XContentParser, T, IOException> bucketParser, CheckedFunction<XContentParser, T, IOException> keyedBucketParser)
-