public static class InternalFilters.InternalBucket extends InternalMultiBucketAggregation.InternalBucket implements Filters.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
InternalBucket(java.lang.String key,
long docCount,
InternalAggregations aggregations,
boolean keyed) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
java.lang.String |
getKey() |
java.lang.String |
getKeyAsString() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
public InternalBucket(java.lang.String key, long docCount, InternalAggregations aggregations, boolean keyed)
public java.lang.String getKey()
getKey
in interface MultiBucketsAggregation.Bucket
public java.lang.String getKeyAsString()
getKeyAsString
in interface MultiBucketsAggregation.Bucket
public long getDocCount()
getDocCount
in interface MultiBucketsAggregation.Bucket
public Aggregations getAggregations()
getAggregations
in interface MultiBucketsAggregation.Bucket
getAggregations
in interface HasAggregations
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException