Class SortSpec


  • public class SortSpec
    extends Object
    SortSpec describes how the data will be sorted.
    • Method Detail

      • createSubSortSpec

        public SortSpec createSubSortSpec​(int startIndex)
        Creates a sub SortSpec starting from startIndex sort field.
      • getFieldIndices

        public int[] getFieldIndices()
        Gets field index of all fields in input.
      • getAscendingOrders

        public boolean[] getAscendingOrders()
        Gets flags of all fields for whether to sort in ascending order or not.
      • getNullsIsLast

        public boolean[] getNullsIsLast()
        Gets flags of all fields for whether to put null at last or not.
      • getFieldSize

        public int getFieldSize()
        Gets num of field in the spec.
      • getFieldTypes

        public LogicalType[] getFieldTypes​(RowType input)
        Gets fields types of sort fields accoording to input type.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object