A single named count bucket, such as one lead stage's total within a team, serialised to JSON via toXContent for dashboard views. Built by aggregation code that groups records by a key (for example a lead's stage name) and tallies how many fall into each group.

Implements: ToXContent


Properties

PropertyReturnsDescription
countLongThe number of records grouped into this bucket. Null until set, typically from an aggregation's document count.
idStringOptional identifier for the record this bucket's key corresponds to. Null unless a subclass or caller sets it.
nameStringThe bucket's label, such as the lead stage name it represents. Set once from the constructor and never null.

Methods

getName()

Returns: String

The bucket's label, such as the lead stage name it represents. Set once from the constructor and never null.

getCount()

Returns: Long

The number of records grouped into this bucket. Null until set, typically from an aggregation's document count.

getId()

Returns: String

Optional identifier for the record this bucket's key corresponds to. Null unless a subclass or caller sets it.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.