Class SortByCount
- java.lang.Object
-
- dev.morphia.aggregation.experimental.stages.Stage
-
- dev.morphia.aggregation.experimental.stages.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 Summary
Constructors Modifier Constructor Description protected
SortByCount(Expression expression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
getExpression()
static SortByCount
on(Expression expression)
Creates a new stage grouping by the given expression.-
Methods inherited from class dev.morphia.aggregation.experimental.stages.Stage
getStageName
-
-
-
-
Constructor Detail
-
SortByCount
protected SortByCount(Expression expression)
-
-
Method Detail
-
on
public static SortByCount on(Expression expression)
Creates a new stage grouping by the given expression.- Parameters:
expression
- the expression- Returns:
- this
-
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.
-
-