Package org.apache.unomi.api.query
Class AggregateQuery
java.lang.Object
org.apache.unomi.api.query.AggregateQuery
- All Implemented Interfaces:
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:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates 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
Modifier and TypeMethodDescriptionRetrieves the aggregate.Retrieves the condition.void
setAggregate
(Aggregate aggregate) Sets the aggregate.void
setCondition
(Condition condition) Sets the condition.
-
Constructor Details
-
AggregateQuery
public AggregateQuery()Instantiates a new Aggregate query. -
AggregateQuery
Instantiates a new Aggregate query with the specifiedAggregate
.- Parameters:
aggregate
- the aggregate
-
AggregateQuery
Instantiates a new Aggregate query with the specifiedCondition
.- Parameters:
condition
- the condition
-
AggregateQuery
- Parameters:
aggregate
- the aggregatecondition
- the condition
-
-
Method Details
-
getAggregate
Retrieves the aggregate.- Returns:
- the aggregate
-
setAggregate
Sets the aggregate.- Parameters:
aggregate
- the aggregate
-
getCondition
Retrieves the condition.- Returns:
- the condition
-
setCondition
Sets the condition.- Parameters:
condition
- the condition
-