Class AggregateResult<T>

java.lang.Object
org.kiwiproject.spring.data.AggregateResult<T>
Type Parameters:
T - the content type contained in this aggregate result

@Beta public class AggregateResult<T> extends Object
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 Details

    • AggregateResult

      public AggregateResult()
  • Method Details

    • of

      public static <T> AggregateResult<T> of(Class<T> clazz)
      Factory to create AggregateResult instances of a given type.
      Type Parameters:
      T - the result type
      Parameters:
      clazz - the Class representing the result type
      Returns:
      a new instance
    • getResults

      public List<T> getResults()
    • getTotalCount

      public long getTotalCount()
    • setResults

      public void setResults(List<T> results)
    • setTotalCount

      public void setTotalCount(long totalCount)