Package org.apache.iceberg
Class SortField
java.lang.Object
org.apache.iceberg.SortField
- All Implemented Interfaces:
Serializable
A field in a
SortOrder
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the sort directionboolean
int
hashCode()
Returns the null orderboolean
Checks whether this field's order satisfies another field's order.int
sourceId()
Returns the field id of the source field in thesort order's
table schematoString()
<S,
T> Transform<S, T> Returns the transform used to produce sort values from source values.
-
Method Details
-
transform
Returns the transform used to produce sort values from source values.- Type Parameters:
S
- the Java type of values transformed by the transform functionT
- the Java type of values returned by the transform function- Returns:
- the transform
-
sourceId
public int sourceId()Returns the field id of the source field in thesort order's
table schema -
direction
Returns the sort direction -
nullOrder
Returns the null order -
satisfies
Checks whether this field's order satisfies another field's order.- Parameters:
other
- another sort field- Returns:
- true if this order satisfies the given order
-
toString
-
equals
-
hashCode
public int hashCode()
-