java.lang.Object
de.elo.ix.client.esearch.aggregations.Bucket
All Implemented Interfaces:
Serializable

public class Bucket extends Object implements Serializable
Represents a bucket within an AggregationResult for a bucket aggregation.
Since:
21.03.000.001
See Also:
  • Field Details

    • key

      protected String key
      The bucket key identifying the bucket.
    • docCount

      protected long docCount
      Number of documents belonging to the bucket's criteria.
    • type

      protected AggregationTypeE type
      Type of aggregation.
    • from

      protected String from
      For aggregations of type RANGE and DATE_RANGE, this value is a string representation of the lower bound of this bucket.
    • to

      protected String to
      For aggregations of type RANGE and DATE_RANGE, this value is a string representation of the upper bound of this bucket.
    • aggregations

      protected Map<String,AggregationResult> 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

      public Bucket(String key)
  • Method Details