Package org.apache.iceberg
Class SortField
- java.lang.Object
- 
- org.apache.iceberg.SortField
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class SortField extends java.lang.Object implements java.io.SerializableA field in aSortOrder.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SortDirectiondirection()Returns the sort directionbooleanequals(java.lang.Object other)inthashCode()NullOrdernullOrder()Returns the null orderbooleansatisfies(SortField other)Checks whether this field's order satisfies another field's order.intsourceId()Returns the field id of the source field in thesort order'stable schemajava.lang.StringtoString()<S,T>
 Transform<S,T>transform()Returns the transform used to produce sort values from source values.
 
- 
- 
- 
Method Detail- 
transformpublic <S,T> Transform<S,T> transform() Returns the transform used to produce sort values from source values.- Type Parameters:
- S- the Java type of values transformed by the transform function
- T- the Java type of values returned by the transform function
- Returns:
- the transform
 
 - 
sourceIdpublic int sourceId() Returns the field id of the source field in thesort order'stable schema
 - 
directionpublic SortDirection direction() Returns the sort direction
 - 
nullOrderpublic NullOrder nullOrder() Returns the null order
 - 
satisfiespublic boolean satisfies(SortField other) 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
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-