Class LimitAndSortHelper.GenericSortField
- java.lang.Object
-
- com.amazonaws.athena.connector.substrait.util.LimitAndSortHelper.GenericSortField
-
- Enclosing class:
- LimitAndSortHelper
public static class LimitAndSortHelper.GenericSortField extends Object
A data-source-agnostic representation of a sort field, containing the column name and sort direction. Connectors use this to build native sort clauses for their respective data sources.
-
-
Constructor Summary
Constructors Constructor Description GenericSortField(String columnName, boolean ascending)Creates a new sort field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnName()booleanisAscending()
-
-
-
Constructor Detail
-
GenericSortField
public GenericSortField(String columnName, boolean ascending)
Creates a new sort field.- Parameters:
columnName- the name of the column to sort byascending-truefor ascending order,falsefor descending
-
-
Method Detail
-
getColumnName
public String getColumnName()
- Returns:
- the name of the column to sort by
-
isAscending
public boolean isAscending()
- Returns:
trueif the sort direction is ascending,falseif descending
-
-