public class SqlOrderBy extends SqlCall
ORDER BY on a query other than a
SELECT (e.g. VALUES or UNION).
It is a purely syntactic operator, and is eliminated by
SqlValidatorImpl.performUnconditionalRewrites(org.apache.calcite.sql.SqlNode, boolean)
and replaced with the ORDER_OPERAND of SqlSelect.
| Modifier and Type | Field and Description |
|---|---|
@Nullable SqlNode |
fetch |
@Nullable SqlNode |
offset |
static SqlSpecialOperator |
OPERATOR |
SqlNodeList |
orderList |
SqlNode |
query |
EMPTY_ARRAY, pos| Constructor and Description |
|---|
SqlOrderBy(SqlParserPos pos,
SqlNode query,
SqlNodeList orderList,
@Nullable SqlNode offset,
@Nullable SqlNode fetch) |
| Modifier and Type | Method and Description |
|---|---|
SqlKind |
getKind()
Returns the type of node this is, or
SqlKind.OTHER if it's nothing special. |
List<SqlNode> |
getOperandList()
Returns the list of operands.
|
SqlOperator |
getOperator() |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, unparse, validateclone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExprpublic static final SqlSpecialOperator OPERATOR
public final SqlNode query
public final SqlNodeList orderList
public final @Nullable SqlNode offset
public final @Nullable SqlNode fetch
public SqlOrderBy(SqlParserPos pos, SqlNode query, SqlNodeList orderList, @Nullable SqlNode offset, @Nullable SqlNode fetch)
public SqlKind getKind()
SqlNodeSqlKind.OTHER if it's nothing special.getKind in class SqlCallSqlKind value, never nullSqlNode.isA(java.util.Set<org.apache.calcite.sql.SqlKind>)public SqlOperator getOperator()
getOperator in class SqlCallpublic List<SqlNode> getOperandList()
SqlCallNote: the proper type would be List<@Nullable SqlNode>, however,
it would trigger too many changes to the current codebase.
getOperandList in class SqlCallCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.