Class InternalAggregations
- java.lang.Object
-
- org.elasticsearch.search.aggregations.Aggregations
-
- org.elasticsearch.search.aggregations.InternalAggregations
-
- All Implemented Interfaces:
java.lang.Iterable<Aggregation>,Streamable,ToXContent,ToXContentFragment
public final class InternalAggregations extends Aggregations implements Streamable
An internal implementation ofAggregations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static InternalAggregationsEMPTY-
Fields inherited from class org.elasticsearch.search.aggregations.Aggregations
aggregations, AGGREGATIONS_FIELD, aggregationsAsMap
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description InternalAggregations(java.util.List<InternalAggregation> aggregations)Constructs a new aggregation.InternalAggregations(java.util.List<InternalAggregation> aggregations, java.util.List<SiblingPipelineAggregator> topLevelPipelineAggregators)Constructs a new aggregation providing itsInternalAggregations andSiblingPipelineAggregators
-
Method Summary
Modifier and Type Method Description static InternalAggregationsreadAggregations(StreamInput in)voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.static InternalAggregationsreduce(java.util.List<InternalAggregations> aggregationsList, java.util.List<SiblingPipelineAggregator> topLevelPipelineAggregators, InternalAggregation.ReduceContext context)Reduces the given list of aggregations as well as the provided top-level pipeline aggregators.static InternalAggregationsreduce(java.util.List<InternalAggregations> aggregationsList, InternalAggregation.ReduceContext context)Reduces the given list of aggregations as well as the top-level pipeline aggregators extracted from the firstInternalAggregationsobject found in the list.voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.search.aggregations.Aggregations
asList, asMap, equals, fromXContent, get, getAsMap, hashCode, iterator, toXContent, toXContentInternal
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
EMPTY
public static final InternalAggregations EMPTY
-
-
Constructor Detail
-
InternalAggregations
public InternalAggregations(java.util.List<InternalAggregation> aggregations)
Constructs a new aggregation.
-
InternalAggregations
public InternalAggregations(java.util.List<InternalAggregation> aggregations, java.util.List<SiblingPipelineAggregator> topLevelPipelineAggregators)
Constructs a new aggregation providing itsInternalAggregations andSiblingPipelineAggregators
-
-
Method Detail
-
reduce
public static InternalAggregations reduce(java.util.List<InternalAggregations> aggregationsList, InternalAggregation.ReduceContext context)
Reduces the given list of aggregations as well as the top-level pipeline aggregators extracted from the firstInternalAggregationsobject found in the list. Note that top-level pipeline aggregators are reduced only as part of the final reduction phase, otherwise they are left untouched.
-
reduce
public static InternalAggregations reduce(java.util.List<InternalAggregations> aggregationsList, java.util.List<SiblingPipelineAggregator> topLevelPipelineAggregators, InternalAggregation.ReduceContext context)
Reduces the given list of aggregations as well as the provided top-level pipeline aggregators. Note that top-level pipeline aggregators are reduced only as part of the final reduction phase, otherwise they are left untouched.
-
readAggregations
public static InternalAggregations readAggregations(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Throws:
java.io.IOException
-
-