Class TermsAggregationResult
java.lang.Object
de.elo.ix.client.esearch.aggregations.TermsAggregationResult
- All Implemented Interfaces:
Serializable
The result object of a terms aggregation.
It consists mainly of buckets and within its inner aggregations results (sub-aggregations).
It consists mainly of buckets and within its inner aggregations results (sub-aggregations).
- Since:
- 21.03.000.001
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe buckets (main part of a terms aggregation).protected long
If you set the show_term_doc_count_error parameter to true, the terms aggregation will include doc_count_error_upper_bound, which is an upper bound to the error on the doc_count returned by each shard.protected long
Number of documents that didn’t make it into the the top size terms.
If this is greater than 0, you can be sure that the terms agg had to throw away some buckets, either because they didn’t fit into size on the coordinating node or they didn’t fit into shard_size on the data node. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
setBuckets
(List<Bucket> buckets) void
setDocCountErrorUpperBound
(long docCountErrorUpperBound) void
setSumOtherDocCount
(long sumOtherDocCount) toString()
-
Field Details
-
buckets
The buckets (main part of a terms aggregation). -
sumOtherDocCount
protected long sumOtherDocCountNumber of documents that didn’t make it into the the top size terms.
If this is greater than 0, you can be sure that the terms agg had to throw away some buckets, either because they didn’t fit into size on the coordinating node or they didn’t fit into shard_size on the data node. -
docCountErrorUpperBound
protected long docCountErrorUpperBoundIf you set the show_term_doc_count_error parameter to true, the terms aggregation will include doc_count_error_upper_bound, which is an upper bound to the error on the doc_count returned by each shard. It’s the sum of the size of the largest bucket on each shard that didn’t fit into shard_size.
-
-
Constructor Details
-
TermsAggregationResult
public TermsAggregationResult()
-
-
Method Details
-
getBuckets
-
setBuckets
-
getSumOtherDocCount
public long getSumOtherDocCount() -
setSumOtherDocCount
public void setSumOtherDocCount(long sumOtherDocCount) -
getDocCountErrorUpperBound
public long getDocCountErrorUpperBound() -
setDocCountErrorUpperBound
public void setDocCountErrorUpperBound(long docCountErrorUpperBound) -
toString
-