Class 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 Detail

      • AggregateResult

        public AggregateResult()
    • Method Detail

      • 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