Module org.elasticsearch.server
Class ParsedSingleBucketAggregation
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.bucket.ParsedSingleBucketAggregation
- All Implemented Interfaces:
- Aggregation,- SingleBucketAggregation,- HasAggregations,- ToXContent,- ToXContentFragment
- Direct Known Subclasses:
- ParsedFilter,- ParsedGlobal,- ParsedMissing,- ParsedNested,- ParsedReverseNested,- ParsedSampler
public abstract class ParsedSingleBucketAggregation
extends ParsedAggregation
implements SingleBucketAggregation
A base class for all the single bucket aggregations.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.AggregationAggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
- 
Field SummaryFieldsFields inherited from class org.elasticsearch.search.aggregations.ParsedAggregationmetadataFields inherited from interface org.elasticsearch.search.aggregations.AggregationTYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoXContentBody(XContentBuilder builder, ToXContent.Params params) longprotected static <T extends ParsedSingleBucketAggregation>
 TparseXContent(XContentParser parser, T aggregation, String name) protected voidsetDocCount(long docCount) Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregationdeclareAggregationFields, getMetadata, getName, parseDouble, setName, toXContentMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.AggregationgetMetadata, getName, getTypeMethods inherited from interface org.elasticsearch.xcontent.ToXContenttoXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Field Details- 
aggregations
 
- 
- 
Constructor Details- 
ParsedSingleBucketAggregationpublic ParsedSingleBucketAggregation()
 
- 
- 
Method Details- 
getDocCountpublic long getDocCount()- Specified by:
- getDocCountin interface- SingleBucketAggregation
- Returns:
- The number of documents in this bucket
 
- 
setDocCountprotected void setDocCount(long docCount) 
- 
getAggregations- Specified by:
- getAggregationsin interface- HasAggregations
- Specified by:
- getAggregationsin interface- SingleBucketAggregation
- Returns:
- The sub-aggregations of this bucket
 
- 
doXContentBodypublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- doXContentBodyin class- ParsedAggregation
- Throws:
- IOException
 
- 
parseXContentprotected static <T extends ParsedSingleBucketAggregation> T parseXContent(XContentParser parser, T aggregation, String name) throws IOException - Throws:
- IOException
 
 
-