Class AggregateQuery

  • All Implemented Interfaces:
    Serializable

    public class AggregateQuery
    extends Object
    implements Serializable
    A query by aggregate: results matching the specified Condition are aggregated using a given Aggregate specification, creating buckets which cardinality is calculated. The results of the query are returned as Map associating the bucket key to the cardinality of its member.
    See Also:
    Serialized Form
    • Constructor Detail

      • AggregateQuery

        public AggregateQuery()
        Instantiates a new Aggregate query.
      • AggregateQuery

        public AggregateQuery​(Aggregate aggregate)
        Instantiates a new Aggregate query with the specified Aggregate.
        Parameters:
        aggregate - the aggregate
      • AggregateQuery

        public AggregateQuery​(Condition condition)
        Instantiates a new Aggregate query with the specified Condition.
        Parameters:
        condition - the condition
      • AggregateQuery

        public AggregateQuery​(Aggregate aggregate,
                              Condition condition)
        Instantiates a new Aggregate query with the specified Aggregate and Condition
        Parameters:
        aggregate - the aggregate
        condition - the condition
    • Method Detail

      • getAggregate

        public Aggregate getAggregate()
        Retrieves the aggregate.
        Returns:
        the aggregate
      • setAggregate

        public void setAggregate​(Aggregate aggregate)
        Sets the aggregate.
        Parameters:
        aggregate - the aggregate
      • getCondition

        public Condition getCondition()
        Retrieves the condition.
        Returns:
        the condition
      • setCondition

        public void setCondition​(Condition condition)
        Sets the condition.
        Parameters:
        condition - the condition