Class SortByCount


  • public class SortByCount
    extends Stage
    Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.
    • Constructor Detail

      • SortByCount

        protected SortByCount​(Expression expression)
    • Method Detail

      • sortByCount

        public static SortByCount sortByCount​(Expression expression)
        Creates a new stage grouping by the given expression.
        Parameters:
        expression - the expression
        Returns:
        this
        Since:
        2.2
      • getExpression

        public Expression getExpression()
        Returns:
        the expression
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.