Package org.apache.unomi.api.query
Class AggregateQuery
- java.lang.Object
-
- org.apache.unomi.api.query.AggregateQuery
-
- All Implemented Interfaces:
Serializable
public class AggregateQuery extends Object implements Serializable
A query by aggregate: results matching the specifiedConditionare aggregated using a givenAggregatespecification, 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 Summary
Constructors Constructor Description AggregateQuery()Instantiates a new Aggregate query.AggregateQuery(Condition condition)Instantiates a new Aggregate query with the specifiedCondition.AggregateQuery(Aggregate aggregate)Instantiates a new Aggregate query with the specifiedAggregate.AggregateQuery(Aggregate aggregate, Condition condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregategetAggregate()Retrieves the aggregate.ConditiongetCondition()Retrieves the condition.voidsetAggregate(Aggregate aggregate)Sets the aggregate.voidsetCondition(Condition condition)Sets the condition.
-
-
-
Constructor Detail
-
AggregateQuery
public AggregateQuery()
Instantiates a new Aggregate query.
-
AggregateQuery
public AggregateQuery(Aggregate aggregate)
Instantiates a new Aggregate query with the specifiedAggregate.- Parameters:
aggregate- the aggregate
-
AggregateQuery
public AggregateQuery(Condition condition)
Instantiates a new Aggregate query with the specifiedCondition.- Parameters:
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
-
-