Package org.apache.calcite.sql
Class SqlBasicCall
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.calcite.sql.SqlBasicCall
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
expanded
private SqlLiteral
functionQuantifier
SqlNode[]
operands
private SqlOperator
operator
-
Fields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos
-
-
Constructor Summary
Constructors Modifier Constructor Description SqlBasicCall(SqlOperator operator, SqlNode[] operands, SqlParserPos pos)
protected
SqlBasicCall(SqlOperator operator, SqlNode[] operands, SqlParserPos pos, boolean expanded, SqlLiteral functionQualifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlNode
clone(SqlParserPos pos)
Clones a SqlNode with a different position.SqlLiteral
getFunctionQuantifier()
SqlKind
getKind()
Returns the type of node this is, orSqlKind.OTHER
if it's nothing special.java.util.List<SqlNode>
getOperandList()
SqlNode[]
getOperands()
SqlOperator
getOperator()
boolean
isExpanded()
Whether this call was created by expanding a parentheses-free call to what was syntactically an identifier.<S extends SqlNode>
Soperand(int i)
int
operandCount()
void
setOperand(int i, SqlNode operand)
Changes the value of an operand.void
setOperator(SqlOperator operator)
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, equalsDeep, findValidOptions, getCallSignature, getMonotonicity, isCountStar, unparse, validate
-
Methods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toSqlString, toSqlString, toString, validateExpr
-
-
-
-
Field Detail
-
operator
private SqlOperator operator
-
operands
public final SqlNode[] operands
-
functionQuantifier
private final SqlLiteral functionQuantifier
-
expanded
private final boolean expanded
-
-
Constructor Detail
-
SqlBasicCall
public SqlBasicCall(SqlOperator operator, SqlNode[] operands, SqlParserPos pos)
-
SqlBasicCall
protected SqlBasicCall(SqlOperator operator, SqlNode[] operands, SqlParserPos pos, boolean expanded, SqlLiteral functionQualifier)
-
-
Method Detail
-
getKind
public SqlKind getKind()
Description copied from class:SqlNode
Returns the type of node this is, orSqlKind.OTHER
if it's nothing special.- Overrides:
getKind
in classSqlCall
- Returns:
- a
SqlKind
value, never null - See Also:
SqlNode.isA(java.util.Set<org.apache.calcite.sql.SqlKind>)
-
isExpanded
public boolean isExpanded()
Description copied from class:SqlCall
Whether this call was created by expanding a parentheses-free call to what was syntactically an identifier.- Overrides:
isExpanded
in classSqlCall
-
setOperand
public void setOperand(int i, SqlNode operand)
Description copied from class:SqlCall
Changes the value of an operand. Allows some rewrite bySqlValidator
; use sparingly.- Overrides:
setOperand
in classSqlCall
- Parameters:
i
- Operand indexoperand
- Operand value
-
setOperator
public void setOperator(SqlOperator operator)
-
getOperator
public SqlOperator getOperator()
- Specified by:
getOperator
in classSqlCall
-
getOperands
public SqlNode[] getOperands()
-
getOperandList
public java.util.List<SqlNode> getOperandList()
- Specified by:
getOperandList
in classSqlCall
-
operandCount
public int operandCount()
- Overrides:
operandCount
in classSqlCall
-
getFunctionQuantifier
public SqlLiteral getFunctionQuantifier()
- Overrides:
getFunctionQuantifier
in classSqlCall
-
clone
public SqlNode clone(SqlParserPos pos)
Description copied from class:SqlNode
Clones a SqlNode with a different position.
-
-