Package org.apache.iceberg.transforms
Interface SortOrderVisitor<T>
-
public interface SortOrderVisitor<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
bucket(java.lang.String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder)
T
day(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T
field(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T
hour(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T
month(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T
truncate(java.lang.String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder)
default T
unknown(java.lang.String sourceName, int sourceId, java.lang.String transform, SortDirection direction, NullOrder nullOrder)
static <R> java.util.List<R>
visit(SortOrder sortOrder, SortOrderVisitor<R> visitor)
Visit the fields of aSortOrder
.T
year(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
-
-
Method Detail
-
field
T field(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
bucket
T bucket(java.lang.String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder)
-
truncate
T truncate(java.lang.String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder)
-
year
T year(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
month
T month(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
day
T day(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
hour
T hour(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
-
unknown
default T unknown(java.lang.String sourceName, int sourceId, java.lang.String transform, SortDirection direction, NullOrder nullOrder)
-
visit
static <R> java.util.List<R> visit(SortOrder sortOrder, SortOrderVisitor<R> visitor)
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
-
-