public class SqlWith extends SqlCall
Modifier and Type | Class and Description |
---|---|
private static class |
SqlWith.SqlWithOperator
SqlWithOperator is used to represent a WITH clause of a query.
|
Modifier and Type | Field and Description |
---|---|
SqlNode |
body |
SqlNodeList |
withList |
EMPTY_ARRAY, pos
Constructor and Description |
---|
SqlWith(SqlParserPos pos,
SqlNodeList withList,
SqlNode body) |
Modifier and Type | Method and Description |
---|---|
SqlKind |
getKind()
Returns the type of node this is, or
SqlKind.OTHER if it's nothing special. |
java.util.List<SqlNode> |
getOperandList() |
SqlOperator |
getOperator() |
void |
setOperand(int i,
SqlNode operand)
Changes the value of an operand.
|
void |
validate(SqlValidator validator,
SqlValidatorScope scope)
Validates this call.
|
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getMonotonicity, isCountStar, isExpanded, operand, operandCount, unparse
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toSqlString, toSqlString, toString, validateExpr
public SqlNodeList withList
public SqlNode body
public SqlWith(SqlParserPos pos, SqlNodeList withList, SqlNode body)
public SqlKind getKind()
SqlNode
SqlKind.OTHER
if it's nothing special.getKind
in class SqlCall
SqlKind
value, never nullSqlNode.isA(java.util.Set<org.apache.calcite.sql.SqlKind>)
public SqlOperator getOperator()
getOperator
in class SqlCall
public java.util.List<SqlNode> getOperandList()
getOperandList
in class SqlCall
public void setOperand(int i, SqlNode operand)
SqlCall
SqlValidator
; use sparingly.setOperand
in class SqlCall
i
- Operand indexoperand
- Operand valuepublic void validate(SqlValidator validator, SqlValidatorScope scope)
SqlCall
The default implementation delegates the validation to the operator's
SqlOperator.validateCall(org.apache.calcite.sql.SqlCall, org.apache.calcite.sql.validate.SqlValidator, org.apache.calcite.sql.validate.SqlValidatorScope, org.apache.calcite.sql.validate.SqlValidatorScope)
. Derived classes may override (as do,
for example SqlSelect
and SqlUpdate
).
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.