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.Params
Writeable.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() |
B |
reduce(java.util.List<B> buckets,
InternalAggregation.ReduceContext context) |
protected abstract void |
writeTermTo(StreamOutput out) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getKeyAsNumber
getProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, getKeyAsString
toXContent
protected 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.IOException
public final void writeTo(StreamOutput out) throws java.io.IOException
Writeable
java.io.IOException
protected abstract void writeTermTo(StreamOutput out) throws java.io.IOException
java.io.IOException
public long getDocCount()
public long getDocCountError()
getDocCountError
in class Terms.Bucket
public Aggregations getAggregations()
public B reduce(java.util.List<B> buckets, InternalAggregation.ReduceContext context)