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:
    RelCollation
    • 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.
      • copy

        public RelFieldCollation copy​(int target)
        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)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public int getFieldIndex()
      • toString

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

        public java.lang.String shortString()