public abstract static class InternalTerms.Bucket extends Terms.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected InternalAggregations |
aggregations |
protected long |
docCount |
protected long |
docCountError |
protected boolean |
showDocCountError |
EMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
InternalTerms.Bucket(long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
ValueFormatter formatter) |
protected |
InternalTerms.Bucket(ValueFormatter formatter,
boolean showDocCountError) |
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
long |
getDocCountError() |
InternalTerms.Bucket |
reduce(List<? extends InternalTerms.Bucket> buckets,
InternalAggregation.ReduceContext context) |
getKeyAsNumbergetPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, getKeyAsStringtoXContentreadFrom, writeToprotected long docCount
protected long docCountError
protected InternalAggregations aggregations
protected boolean showDocCountError
protected InternalTerms.Bucket(ValueFormatter formatter, boolean showDocCountError)
protected InternalTerms.Bucket(long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
ValueFormatter formatter)
public long getDocCount()
public long getDocCountError()
getDocCountError in class Terms.Bucketpublic Aggregations getAggregations()
public InternalTerms.Bucket reduce(List<? extends InternalTerms.Bucket> buckets, InternalAggregation.ReduceContext context)
Copyright © 2009–2017. All rights reserved.