NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, Aggregation
, CompositeAggregation
, MultiBucketsAggregation
public class InternalComposite extends InternalMultiBucketAggregation<InternalComposite,org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> implements CompositeAggregation
Aggregation.CommonFields
CompositeAggregation.Bucket
InternalAggregation.ReduceContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
TYPED_KEYS_DELIMITER
metaData, name
EMPTY_PARAMS
Constructor | Description |
---|---|
InternalComposite(StreamInput in) |
Modifier and Type | Method | 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> newBuckets) |
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
|
getMetaData, getName, getType
equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
countInnerBucket, countInnerBucket, getProperty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toXContent
isFragment
public InternalComposite(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class InternalAggregation
java.io.IOException
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class InternalAggregation
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable
public InternalComposite create(java.util.List<org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket> newBuckets)
InternalMultiBucketAggregation
Aggregation
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>
newBuckets
- the buckets to use in the new Aggregation
Aggregation
public org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.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 CompositeAggregation
getBuckets
in interface MultiBucketsAggregation
getBuckets
in class InternalMultiBucketAggregation<InternalComposite,org.elasticsearch.search.aggregations.bucket.composite.InternalComposite.InternalBucket>
public java.util.Map<java.lang.String,java.lang.Object> afterKey()
CompositeAggregation
CompositeAggregationBuilder.aggregateAfter(java.util.Map<java.lang.String, java.lang.Object>)
.afterKey
in interface CompositeAggregation
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
protected boolean doEquals(java.lang.Object obj)
InternalAggregation
InternalAggregation.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 this
doEquals
in class InternalAggregation
protected int doHashCode()
InternalAggregation
InternalAggregation.hashCode()
for this
class.doHashCode
in class InternalAggregation