Class SortSpec
java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.spec.SortSpec
SortSpec describes how the data will be sorted.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSort info for a Field.static classSortSpec builder. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SortSpec.SortSpecBuilderbuilder()createSubSortSpec(int startIndex) Creates a sub SortSpec starting from startIndex sort field.booleanboolean[]Gets flags of all fields for whether to sort in ascending order or not.int[]Gets field index of all fields in input.intGets num of field in the spec.getFieldSpec(int index) GetsSortSpec.SortFieldSpecof field at given index.Gets allSortSpec.SortFieldSpecin the SortSpec.org.apache.flink.table.types.logical.LogicalType[]getFieldTypes(org.apache.flink.table.types.logical.RowType input) Gets fields types of sort fields accoording to input type.boolean[]Gets flags of all fields for whether to put null at last or not.inthashCode()toString()
-
Field Details
-
FIELD_NAME_FIELDS
- See Also:
-
ANY
SortSpec does not require sort.
-
-
Constructor Details
-
SortSpec
-
-
Method Details
-
createSubSortSpec
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. -
getFieldSpecs
Gets allSortSpec.SortFieldSpecin the SortSpec. -
getFieldSpec
GetsSortSpec.SortFieldSpecof field at given index. -
getFieldSize
public int getFieldSize()Gets num of field in the spec. -
getFieldTypes
public org.apache.flink.table.types.logical.LogicalType[] getFieldTypes(org.apache.flink.table.types.logical.RowType input) Gets fields types of sort fields accoording to input type. -
builder
-
equals
-
hashCode
public int hashCode() -
toString
-