org.springframework.data.mongodb.core.aggregation

Class SortOperation

  • java.lang.Object
    • org.springframework.data.mongodb.core.aggregation.SortOperation
  • All Implemented Interfaces:
    AggregationOperation


    public class SortOperation
    extends Object
    implements AggregationOperation
    Encapsulates the aggregation framework $sort-operation.

    We recommend to use the static factory method Aggregation#sort(Direction, String...) instead of creating instances of this class directly.

    Since:
    1.3
    Author:
    Thomas Darimont, Oliver Gierke, Christoph Strobl, Mark Paluch
    See Also:
    MongoDB Aggregation Framework: $sort