Modifier and Type | Class and Description |
---|---|
static class |
AggregateQuery.AggregateFunction |
Query.SortDirection
Modifier and Type | Field and Description |
---|---|
protected Query<T> |
queryToAggregate |
Constructor and Description |
---|
AggregateQuery(AggregateQuery.AggregateFunction function,
Query<T> queryToAggregate) |
Modifier and Type | Method and Description |
---|---|
AggregateQuery.AggregateFunction |
getAggregateFunction() |
Key<?> |
getAggregateKey() |
Expression |
getWhereExpression() |
void |
limit(int n) |
void |
setAggregateKey(Key<?> aggregateKey)
Sets an optional
Key to aggregate values for. |
void |
sort(Key<?> key,
Query.SortDirection direction) |
void |
where(Expression expr) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawDuplicate
public AggregateQuery(AggregateQuery.AggregateFunction function, Query<T> queryToAggregate)
public void where(Expression expr)
public void sort(Key<?> key, Query.SortDirection direction)
public Expression getWhereExpression()
getWhereExpression
in interface Query<T extends Pojo>
public AggregateQuery.AggregateFunction getAggregateFunction()
public Key<?> getAggregateKey()
Key
to aggregate values for. May be
null
;public void setAggregateKey(Key<?> aggregateKey)
Key
to aggregate values for.aggregateKey
- Must not be null
.NullPointerException
- If the aggregate key was null
Copyright © 2017. All rights reserved.