public class InternalComposite extends InternalMultiBucketAggregation<InternalComposite,org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> implements CompositeAggregation
InternalAggregation.ReduceContextCompositeAggregation.BucketAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>metaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalComposite(StreamInput in) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
afterKey()
Returns the last key in this aggregation.
|
InternalComposite |
create(java.util.List<org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket |
createBucket(InternalAggregations aggregations,
org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected boolean |
doEquals(java.lang.Object obj)
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode()
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.util.List<org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> |
getBuckets() |
int |
getSize() |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
getPropertyequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitbucketToXContent, buildCompositeMap, toXContentFragmentgetMetaData, getName, getTypeisFragmenttoXContentpublic InternalComposite(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic InternalComposite create(java.util.List<org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> buckets)
InternalMultiBucketAggregationAggregation with the same settings as
this Aggregation and contains the provided buckets.create in class InternalMultiBucketAggregation<InternalComposite,org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket>buckets - the buckets to use in the new AggregationAggregationpublic org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations.createBucket in class InternalMultiBucketAggregation<InternalComposite,org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket>aggregations - the aggregations for the new bucketprototype - the bucket to use as a prototypepublic int getSize()
public java.util.List<org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> getBuckets()
getBuckets in interface CompositeAggregationgetBuckets in interface MultiBucketsAggregationgetBuckets in class InternalMultiBucketAggregation<InternalComposite,org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket>public java.util.Map<java.lang.String,java.lang.Object> afterKey()
CompositeAggregationCompositeAggregationBuilder.aggregateAfter(java.util.Map<java.lang.String, java.lang.Object>).afterKey in interface CompositeAggregationpublic InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationprotected boolean doEquals(java.lang.Object obj)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalAggregationprotected int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode in class InternalAggregation