Package org.apache.calcite.sql.fun
Class SqlBaseContextVariable
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.fun.SqlBaseContextVariable
- Direct Known Subclasses:
- SqlStringContextVariable
Base class for functions such as "USER", "CURRENT_ROLE", and "CURRENT_PATH".
- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSqlBaseContextVariable(String name, SqlReturnTypeInference returnType, SqlFunctionCategory category) Creates a SqlBaseContextVariable.
- 
Method SummaryModifier and TypeMethodDescriptionReturns whether a call to this operator is monotonic.Returns the syntactic type of this operator, never null.booleanReturns whether it is unsafe to cache query plans referencing this operator; false is assumed by default.Methods inherited from class org.apache.calcite.sql.SqlFunctionderiveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, isQuantifierAllowed, unparse, validateCall, validateQuantifierMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
- 
Constructor Details- 
SqlBaseContextVariableprotected SqlBaseContextVariable(String name, SqlReturnTypeInference returnType, SqlFunctionCategory category) Creates a SqlBaseContextVariable.
 
- 
- 
Method Details- 
getSyntaxDescription copied from class:SqlOperatorReturns the syntactic type of this operator, never null.- Overrides:
- getSyntaxin class- SqlFunction
 
- 
getMonotonicityDescription copied from class:SqlOperatorReturns whether a call to this operator is monotonic.Default implementation returns SqlMonotonicity.NOT_MONOTONIC.- Overrides:
- getMonotonicityin class- SqlOperator
- Parameters:
- call- Call to this operator with particular arguments and information about the monotonicity of the arguments
 
- 
isDynamicFunctionpublic boolean isDynamicFunction()Description copied from class:SqlOperatorReturns whether it is unsafe to cache query plans referencing this operator; false is assumed by default.- Overrides:
- isDynamicFunctionin class- SqlOperator
 
 
-