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 InternalAggregations
EMPTY
-
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 itsInternalAggregation
s andSiblingPipelineAggregator
s
-
Method Summary
Modifier and Type Method Description static InternalAggregations
readAggregations(StreamInput in)
void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.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.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 firstInternalAggregations
object found in the list.void
writeTo(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 itsInternalAggregation
s andSiblingPipelineAggregator
s
-
-
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 firstInternalAggregations
object 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:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Throws:
java.io.IOException
-
-