Class Aggregations
java.lang.Object
org.elasticsearch.search.aggregations.Aggregations
- All Implemented Interfaces:
Iterable<Aggregation>,ToXContent,ToXContentFragment
- Direct Known Subclasses:
InternalAggregations
Represents a set of
Aggregations-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<Aggregation>asList()The list ofAggregations.final Map<String,Aggregation> asMap()Returns theAggregations keyed by aggregation name.final booleanstatic AggregationsfromXContent(XContentParser parser) final <A extends Aggregation>
AReturns the aggregation that is associated with the specified name.final Map<String,Aggregation> getAsMap()Returns theAggregations keyed by aggregation name.final inthashCode()final Iterator<Aggregation>iterator()Iterates over theAggregations.toXContent(XContentBuilder builder, ToXContent.Params params) toXContentInternal(XContentBuilder builder, ToXContent.Params params) Directly write all the aggregations without their bounding object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
AGGREGATIONS_FIELD
- See Also:
-
aggregations
-
-
Constructor Details
-
Aggregations
-
-
Method Details
-
iterator
Iterates over theAggregations.- Specified by:
iteratorin interfaceIterable<Aggregation>
-
asList
The list ofAggregations. -
asMap
Returns theAggregations keyed by aggregation name. -
getAsMap
Returns theAggregations keyed by aggregation name. -
get
Returns the aggregation that is associated with the specified name. -
equals
-
hashCode
public final int hashCode() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toXContentInternal
public XContentBuilder toXContentInternal(XContentBuilder builder, ToXContent.Params params) throws IOException Directly write all the aggregations without their bounding object. Used by sub-aggregations (non top level aggs)- Throws:
IOException
-
fromXContent
- Throws:
IOException
-