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 |
|---|---|
SqlNode |
fetch |
SqlNode |
offset |
static SqlSpecialOperator |
OPERATOR |
SqlNodeList |
orderList |
SqlNode |
query |
EMPTY_ARRAY, pos| Constructor and Description |
|---|
SqlOrderBy(SqlParserPos pos,
SqlNode query,
SqlNodeList orderList,
SqlNode offset,
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() |
SqlOperator |
getOperator() |
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, unparse, validateclone, cloneArray, equalDeep, equalDeep, getParserPosition, isA, toSqlString, toSqlString, toString, validateExprpublic static final SqlSpecialOperator OPERATOR
public final SqlNode query
public final SqlNodeList orderList
public final SqlNode offset
public final SqlNode fetch
public SqlOrderBy(SqlParserPos pos, SqlNode query, SqlNodeList orderList, SqlNode offset, SqlNode fetch)
public SqlKind getKind()
SqlNodeSqlKind.OTHER if it's nothing special.getKind in class SqlNodeSqlKind value, never nullSqlNode.isA(java.util.Set<org.apache.calcite.sql.SqlKind>)public SqlOperator getOperator()
getOperator in class SqlCallpublic List<SqlNode> getOperandList()
getOperandList in class SqlCallCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.