Package org.kiwiproject.spring.data
Class AggregateResult<T>
java.lang.Object
org.kiwiproject.spring.data.AggregateResult<T>
- Type Parameters:
T- the content type contained in this aggregate result
A generic aggregate result containing a list of results, and a total count.
- Implementation Note:
- Marked as beta because it is used by
PagingQuery.aggregatePage(Class, AggregationOperation...). Read the docs there for an explanation why that is beta.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongstatic <T> AggregateResult<T>Factory to createAggregateResultinstances of a given type.voidsetResults(List<T> results) voidsetTotalCount(long totalCount)
-
Constructor Details
-
AggregateResult
public AggregateResult()
-
-
Method Details
-
of
Factory to createAggregateResultinstances of a given type.- Type Parameters:
T- the result type- Parameters:
clazz- the Class representing the result type- Returns:
- a new instance
-
getResults
-
getTotalCount
public long getTotalCount() -
setResults
-
setTotalCount
public void setTotalCount(long totalCount)
-