EMPTY_ARRAY, pos| Constructor and Description |
|---|
SqlBasicCall(SqlOperator operator,
List<? extends SqlNode> operandList,
SqlParserPos pos)
Creates a SqlBasicCall.
|
SqlBasicCall(SqlOperator operator,
List<? extends SqlNode> operandList,
SqlParserPos pos,
@Nullable SqlLiteral functionQualifier)
Creates a SqlBasicCall with an optional function qualifier.
|
SqlBasicCall(SqlOperator operator,
@Nullable SqlNode[] operands,
SqlParserPos pos)
Deprecated.
|
SqlBasicCall(SqlOperator operator,
@Nullable SqlNode[] operands,
SqlParserPos pos,
@Nullable SqlLiteral functionQualifier)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
clone(SqlParserPos pos)
Clones a SqlNode with a different position.
|
@Nullable SqlLiteral |
getFunctionQuantifier() |
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() |
<S extends SqlNode> |
operand(int i)
Returns i-th operand (0-based).
|
int |
operandCount() |
void |
setOperand(int i,
@Nullable SqlNode operand)
Changes the value of an operand.
|
void |
setOperator(SqlOperator operator)
Sets the operator (or function) that is being called.
|
SqlCall |
withExpanded(boolean expanded)
Sets whether this call is expanded.
|
accept, equalsDeep, findValidOptions, getCallSignature, getMonotonicity, isCountStar, isExpanded, unparse, validateclone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr@Deprecated public SqlBasicCall(SqlOperator operator, @Nullable SqlNode[] operands, SqlParserPos pos)
public SqlBasicCall(SqlOperator operator, List<? extends SqlNode> operandList, SqlParserPos pos)
It is not expanded; call withExpanded(true)
to expand.
@Deprecated public SqlBasicCall(SqlOperator operator, @Nullable SqlNode[] operands, SqlParserPos pos, @Nullable SqlLiteral functionQualifier)
public SqlBasicCall(SqlOperator operator, List<? extends SqlNode> operandList, SqlParserPos pos, @Nullable SqlLiteral functionQualifier)
It is not expanded; call withExpanded(true)
to expand.
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 SqlCall withExpanded(boolean expanded)
SqlCall.isExpanded()public void setOperand(int i,
@Nullable SqlNode operand)
SqlCallSqlValidator; use sparingly.setOperand in class SqlCalli - Operand indexoperand - Operand valuepublic void setOperator(SqlOperator operator)
This method is used by the validator to set a more refined version of the same operator (for instance, a version where overloading has been resolved); use with care.
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 SqlCallpublic <S extends SqlNode> S operand(int i)
SqlCallNote: the result might be null, so the proper signature would be
<S extends @Nullable SqlNode>, however, it would trigger to many changes to the current
codebase.
public int operandCount()
operandCount in class SqlCallpublic @Nullable SqlLiteral getFunctionQuantifier()
getFunctionQuantifier in class SqlCallpublic SqlNode clone(SqlParserPos pos)
SqlNodeCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.