T - the type of the query to perform the aggregate operation onS - the type of the result of the aggregate operationpublic interface Aggregate<T,S>
| Modifier and Type | Method and Description |
|---|---|
S |
apply(java.util.stream.Stream<? extends T> stream)
The function to apply to the stream of results to produce the aggregate result.
|
NamedAggregate<T,S> |
as(String name)
Return a
NamedAggregate. |
S apply(java.util.stream.Stream<? extends T> stream)
stream - a stream of query resultsNamedAggregate<T,S> as(String name)
NamedAggregate. This is used when operating on a query with multiple aggregates.name - the name of the aggregateCopyright © 2016. All rights reserved.