public interface SortOrderVisitor<T>
Modifier and Type | Method and 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 a
SortOrder . |
T |
year(java.lang.String sourceName,
int sourceId,
SortDirection direction,
NullOrder nullOrder) |
T field(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T bucket(java.lang.String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder)
T truncate(java.lang.String sourceName, int sourceId, int width, SortDirection direction, NullOrder nullOrder)
T year(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T month(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T day(java.lang.String sourceName, int sourceId, SortDirection direction, NullOrder nullOrder)
T hour(java.lang.String sourceName, int sourceId, 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)
SortOrder
.R
- return type of the visitorsortOrder
- a sort order to visitvisitor
- a sort order visitor