Class SortSpec
- java.lang.Object
-
- org.apache.flink.table.planner.plan.nodes.exec.spec.SortSpec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SortSpec.SortFieldSpec
Sort info for a Field.static class
SortSpec.SortSpecBuilder
SortSpec builder.
-
Field Summary
Fields Modifier and Type Field Description static SortSpec
ANY
SortSpec does not require sort.static String
FIELD_NAME_FIELDS
-
Constructor Summary
Constructors Constructor Description SortSpec(SortSpec.SortFieldSpec[] fieldSpecs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortSpec.SortSpecBuilder
builder()
SortSpec
createSubSortSpec(int startIndex)
Creates a sub SortSpec starting from startIndex sort field.boolean
equals(Object o)
boolean[]
getAscendingOrders()
Gets flags of all fields for whether to sort in ascending order or not.int[]
getFieldIndices()
Gets field index of all fields in input.int
getFieldSize()
Gets num of field in the spec.SortSpec.SortFieldSpec
getFieldSpec(int index)
GetsSortSpec.SortFieldSpec
of field at given index.SortSpec.SortFieldSpec[]
getFieldSpecs()
Gets allSortSpec.SortFieldSpec
in the SortSpec.LogicalType[]
getFieldTypes(RowType input)
Gets fields types of sort fields accoording to input type.boolean[]
getNullsIsLast()
Gets flags of all fields for whether to put null at last or not.int
hashCode()
String
toString()
-
-
-
Field Detail
-
FIELD_NAME_FIELDS
public static final String FIELD_NAME_FIELDS
- See Also:
- Constant Field Values
-
ANY
public static final SortSpec ANY
SortSpec does not require sort.
-
-
Constructor Detail
-
SortSpec
public SortSpec(SortSpec.SortFieldSpec[] fieldSpecs)
-
-
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.
-
getFieldSpecs
public SortSpec.SortFieldSpec[] getFieldSpecs()
Gets allSortSpec.SortFieldSpec
in the SortSpec.
-
getFieldSpec
public SortSpec.SortFieldSpec getFieldSpec(int index)
GetsSortSpec.SortFieldSpec
of field at given index.
-
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.
-
builder
public static SortSpec.SortSpecBuilder builder()
-
-