public abstract static class InternalTerms.Bucket<B extends InternalTerms.Bucket<B>> extends Terms.Bucket
| Modifier and Type | Class and Description |
|---|---|
static interface |
InternalTerms.Bucket.Reader<B extends InternalTerms.Bucket<B>>
Reads a bucket.
|
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
protected InternalAggregations |
aggregations |
protected long |
docCount |
protected long |
docCountError |
protected DocValueFormat |
format |
protected boolean |
showDocCountError |
EMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
Bucket(long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
DocValueFormat formatter) |
protected |
Bucket(StreamInput in,
DocValueFormat formatter,
boolean showDocCountError)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
long |
getDocCountError() |
protected abstract XContentBuilder |
keyToXContent(XContentBuilder builder) |
B |
reduce(java.util.List<B> buckets,
InternalAggregation.ReduceContext context) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
protected abstract void |
writeTermTo(StreamOutput out) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getKeyAsNumbergetPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, getKeyAsStringisFragmentprotected long docCount
protected long docCountError
protected InternalAggregations aggregations
protected final boolean showDocCountError
protected final DocValueFormat format
protected Bucket(long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
DocValueFormat formatter)
protected Bucket(StreamInput in, DocValueFormat formatter, boolean showDocCountError) throws java.io.IOException
java.io.IOExceptionpublic final void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOExceptionprotected abstract void writeTermTo(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic long getDocCount()
public long getDocCountError()
getDocCountError in class Terms.Bucketpublic Aggregations getAggregations()
public B reduce(java.util.List<B> buckets, InternalAggregation.ReduceContext context)
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionprotected abstract XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
java.io.IOException