Modifier and Type | Class and Description |
---|---|
static class |
SortSpec.SortFieldSpec
Sort info for a Field.
|
static class |
SortSpec.SortSpecBuilder
SortSpec builder.
|
Modifier and Type | Field and Description |
---|---|
static SortSpec |
ANY
SortSpec does not require sort.
|
static String |
FIELD_NAME_FIELDS |
Constructor and Description |
---|
SortSpec(SortSpec.SortFieldSpec[] fieldSpecs) |
Modifier and Type | Method and 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)
Gets
SortSpec.SortFieldSpec of field at given index. |
SortSpec.SortFieldSpec[] |
getFieldSpecs()
Gets all
SortSpec.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() |
public static final String FIELD_NAME_FIELDS
public static final SortSpec ANY
public SortSpec(SortSpec.SortFieldSpec[] fieldSpecs)
public SortSpec createSubSortSpec(int startIndex)
public int[] getFieldIndices()
public boolean[] getAscendingOrders()
public boolean[] getNullsIsLast()
public SortSpec.SortFieldSpec[] getFieldSpecs()
SortSpec.SortFieldSpec
in the SortSpec.public SortSpec.SortFieldSpec getFieldSpec(int index)
SortSpec.SortFieldSpec
of field at given index.public int getFieldSize()
public LogicalType[] getFieldTypes(RowType input)
public static SortSpec.SortSpecBuilder builder()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.