Package org.apache.calcite.sql.fun
Class SqlRandIntegerFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.fun.SqlRandIntegerFunction
The
RAND_INTEGER
function. There are two overloads:
- RAND_INTEGER(bound) returns a random integer between 0 and bound - 1
- RAND_INTEGER(seed, bound) returns a random integer between 0 and bound - 1, initializing the random number generator with seed on first call
-
Field Summary
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether a call to this operator is guaranteed to always return the same result given the same operands; true is assumed by default.boolean
Returns whether it is unsafe to cache query plans referencing this operator; false is assumed by default.Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifier
Methods inherited from class org.apache.calcite.sql.SqlOperator
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
Constructor Details
-
SqlRandIntegerFunction
public SqlRandIntegerFunction()
-
-
Method Details
-
isDeterministic
public boolean isDeterministic()Description copied from class:SqlOperator
Returns whether a call to this operator is guaranteed to always return the same result given the same operands; true is assumed by default.- Overrides:
isDeterministic
in classSqlOperator
-
isDynamicFunction
public boolean isDynamicFunction()Description copied from class:SqlOperator
Returns whether it is unsafe to cache query plans referencing this operator; false is assumed by default.- Overrides:
isDynamicFunction
in classSqlOperator
-