public interface Orders
Collection of methods used to specify Orders for PipelineStage.sortBy(Function) stage.
Since:
14.0 - Caribou Lou
  • Method Details

    • ascNullsFirst

      Orders.Order ascNullsFirst(Expression e)
      Builds an ascending order with null values evaluated as the lowest value.
      Parameters:
      e - the expression on which the order is defined
      Returns:
      the built order
      Since:
      14.0 - Caribou Lou
    • ascNullsLast

      Orders.Order ascNullsLast(Expression e)
      Builds an ascending order with null values evaluated as the highest value.
      Parameters:
      e - the expression on which the order is defined
      Returns:
      the built order
      Since:
      14.0 - Caribou Lou
    • descNullsFirst

      Orders.Order descNullsFirst(Expression e)
      Builds a descending order with null values evaluated as the lowest value.
      Parameters:
      e - the expression on which the order is defined
      Returns:
      the built order
      Since:
      14.0 - Caribou Lou
    • descNullsLast

      Orders.Order descNullsLast(Expression e)
      Builds a descending order with null values evaluated as the highest value.
      Parameters:
      e - the expression on which the order is defined
      Returns:
      the built order
      Since:
      14.0 - Caribou Lou