public abstract static class InternalTerms.Bucket extends Terms.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
Modifier and Type | Field and Description |
---|---|
protected InternalAggregations |
aggregations |
protected long |
docCount |
protected long |
docCountError |
protected boolean |
showDocCountError |
Modifier | Constructor and Description |
---|---|
protected |
Bucket(long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
long |
getDocCountError() |
InternalTerms.Bucket |
reduce(List<? extends InternalTerms.Bucket> buckets,
InternalAggregation.ReduceContext context) |
getKeyAsNumber
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, getKeyAsText
protected long docCount
protected long docCountError
protected InternalAggregations aggregations
protected boolean showDocCountError
protected Bucket(long docCount, InternalAggregations aggregations, boolean showDocCountError, long docCountError)
public long getDocCount()
public long getDocCountError()
getDocCountError
in class Terms.Bucket
public Aggregations getAggregations()
public InternalTerms.Bucket reduce(List<? extends InternalTerms.Bucket> buckets, InternalAggregation.ReduceContext context)
Copyright © 2009–2015. All rights reserved.