Class Ordering

java.lang.Object
com.couchbase.lite.Ordering
Direct Known Subclasses:
Ordering.SortOrder

public abstract class Ordering extends Object
An Ordering represents a single ordering component in the query ORDER BY clause.
  • Constructor Details

    • Ordering

      public Ordering()
  • Method Details

    • property

      @NonNull public static Ordering.SortOrder property(@NonNull String property)
      Create a SortOrder, inherited from the OrderBy class, object by the given property name.
      Parameters:
      property - the property name
      Returns:
      the SortOrder object.
    • expression

      @NonNull public static Ordering.SortOrder expression(@NonNull Expression expression)
      Create a SortOrder, inherited from the OrderBy class, object by the given expression.
      Parameters:
      expression - the expression object.
      Returns:
      the SortOrder object.