public static class InternalFilters.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Filters.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
InternalFilters.Bucket(String key,
long docCount,
InternalAggregations aggregations,
boolean keyed) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
String |
getKey() |
String |
getKeyAsString() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty
public InternalFilters.Bucket(String key, long docCount, InternalAggregations aggregations, boolean keyed)
public String getKey()
getKey
in interface MultiBucketsAggregation.Bucket
public 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 IOException
toXContent
in interface ToXContent
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2017. All rights reserved.