Class Order.Ordering

java.lang.Object
org.apache.drill.common.logical.data.Order.Ordering
Enclosing class:
Order

public static class Order.Ordering extends Object
Representation of a SQL <sort specification>.
  • Field Details

  • Constructor Details

    • Ordering

      public Ordering(String strOrderingSpec, LogicalExpression expr, String strNullOrdering)
      Constructs a sort specification.
      Parameters:
      expr - ...
      strOrderingSpec - the <ordering specification> as string; allowed values: "ASC", "DESC", null; null specifies default <ordering specification> ("ASC" / RelFieldCollation.Direction.ASCENDING)
      strNullOrdering - the <null ordering> as string; allowed values: "FIRST", "LAST", "UNSPECIFIED", null; null specifies default <null ordering> (omitted / RelFieldCollation.NullDirection.UNSPECIFIED, interpreted later)
    • Ordering

      public Ordering(org.apache.calcite.rel.RelFieldCollation.Direction direction, LogicalExpression e, org.apache.calcite.rel.RelFieldCollation.NullDirection nullOrdering)
    • Ordering

      public Ordering(org.apache.calcite.rel.RelFieldCollation.Direction direction, LogicalExpression e)
  • Method Details

    • getOrderingSpecFromString

      public static org.apache.calcite.rel.RelFieldCollation.Direction getOrderingSpecFromString(String strDirection)
    • getNullOrderingFromString

      public static org.apache.calcite.rel.RelFieldCollation.NullDirection getNullOrderingFromString(String strNullOrdering)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDirection

      public org.apache.calcite.rel.RelFieldCollation.Direction getDirection()
    • getExpr

      public LogicalExpression getExpr()
    • getOrder

      public String getOrder()
    • getNullDirection

      public org.apache.calcite.rel.RelFieldCollation.NullDirection getNullDirection()
    • nullsSortHigh

      public boolean nullsSortHigh()
      Reports whether NULL sorts high or low in this ordering.
      Returns:
      true if NULL sorts higher than any other value; false if NULL sorts lower than any other value