Class RelFieldCollation

  • public class RelFieldCollation
    extends java.lang.Object
    Definition of the ordering of one field of a RelNode whose output is to be sorted.
    See Also:
    • Constructor Detail

      • RelFieldCollation

        public RelFieldCollation​(int fieldIndex)
        Creates an ascending field collation.
      • RelFieldCollation

        public RelFieldCollation​(int fieldIndex,
                                 RelFieldCollation.Direction direction)
        Creates a field collation with unspecified null direction.
    • Method Detail

      • compare

        public static int compare​(java.lang.Comparable c1,
                                  java.lang.Comparable c2,
                                  int nullComparison)
        Utility method that compares values taking into account null direction.
      • withFieldIndex

        public RelFieldCollation withFieldIndex​(int fieldIndex)
        Creates a copy of this RelFieldCollation against a different field.
      • shift

        public RelFieldCollation shift​(int offset)
        Returns a copy of this RelFieldCollation with the field index shifted offset to the right.
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • getFieldIndex

        public int getFieldIndex()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • shortString

        public java.lang.String shortString()