Class Bucket
java.lang.Object
de.elo.ix.client.esearch.aggregations.Bucket
- All Implemented Interfaces:
Serializable
Represents a bucket within an AggregationResult for a bucket aggregation.
- Since:
- 21.03.000.001
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,
AggregationResult> In case the bucket aggregation query has defined sub-aggregations, this Map contains the results of that sub-aggregations within this bucket.protected long
Number of documents belonging to the bucket's criteria.protected String
For aggregations of type RANGE and DATE_RANGE, this value is a string representation of the lower bound of this bucket.protected String
The bucket key identifying the bucket.protected String
For aggregations of type RANGE and DATE_RANGE, this value is a string representation of the upper bound of this bucket.protected AggregationTypeE
Type of aggregation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getFrom()
getKey()
getTo()
getType()
void
setAggregations
(Map<String, AggregationResult> aggregations) void
setDocCount
(long docCount) void
void
void
void
setType
(AggregationTypeE type) toString()
-
Field Details
-
key
The bucket key identifying the bucket. -
docCount
protected long docCountNumber of documents belonging to the bucket's criteria. -
type
Type of aggregation. -
from
For aggregations of type RANGE and DATE_RANGE, this value is a string representation of the lower bound of this bucket. -
to
For aggregations of type RANGE and DATE_RANGE, this value is a string representation of the upper bound of this bucket. -
aggregations
In case the bucket aggregation query has defined sub-aggregations, this Map contains the results of that sub-aggregations within this bucket.
-
-
Constructor Details
-
Bucket
public Bucket() -
Bucket
-
-
Method Details