Package org.apache.iceberg.transforms
Interface SortOrderVisitor<T>
public interface SortOrderVisitor<T>
-
Method Summary
Modifier and TypeMethodDescriptionbucket
(String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder) day
(String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder) field
(String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder) hour
(String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder) month
(String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder) truncate
(String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder) default T
unknown
(String sourceName, int sourceId, String transform, SortDirection direction, NullOrder nullOrder) static <R> List<R>
visit
(SortOrder sortOrder, SortOrderVisitor<R> visitor) Visit the fields of aSortOrder
.year
(String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
Method Details
-
field
-
bucket
-
truncate
T truncate(String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder) -
year
-
month
-
day
-
hour
-
unknown
default T unknown(String sourceName, int sourceId, String transform, SortDirection direction, NullOrder nullOrder) -
visit
Visit the fields of aSortOrder
.- Type Parameters:
R
- return type of the visitor- Parameters:
sortOrder
- a sort order to visitvisitor
- a sort order visitor- Returns:
- a list of the result produced by visiting each sort field
-