public class DrillCalciteSqlFunctionWrapper extends org.apache.calcite.sql.SqlFunction implements DrillCalciteSqlWrapper
| Constructor and Description |
|---|
DrillCalciteSqlFunctionWrapper(org.apache.calcite.sql.SqlFunction wrappedFunction,
List<DrillFuncHolder> functions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
argumentMustBeScalar(int ordinal) |
boolean |
checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding,
boolean throwOnFailure) |
org.apache.calcite.rel.type.RelDataType |
deriveType(org.apache.calcite.sql.validate.SqlValidator validator,
org.apache.calcite.sql.validate.SqlValidatorScope scope,
org.apache.calcite.sql.SqlCall call) |
String |
getAllowedSignatures(String opNameToUse) |
org.apache.calcite.sql.validate.SqlMonotonicity |
getMonotonicity(org.apache.calcite.sql.SqlOperatorBinding call) |
org.apache.calcite.sql.SqlOperator |
getOperator()
Get the wrapped
SqlOperator |
List<String> |
getParamNames() |
String |
getSignatureTemplate(int operandsCount) |
org.apache.calcite.sql.SqlSyntax |
getSyntax() |
boolean |
isDeterministic() |
boolean |
isDynamicFunction() |
boolean |
requiresDecimalExpansion() |
org.apache.calcite.sql.SqlNode |
rewriteCall(org.apache.calcite.sql.validate.SqlValidator validator,
org.apache.calcite.sql.SqlCall call) |
String |
toString() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
org.apache.calcite.sql.SqlCall call,
int leftPrec,
int rightPrec) |
boolean |
validRexOperands(int count,
org.apache.calcite.util.Litmus litmus) |
getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, isQuantifierAllowed, validateCall, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, checkOperandCount, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, hashCode, inferReturnType, inferReturnType, isAggregator, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresOrder, requiresOver, rightPrec, unparseListClause, unparseListClause, validateOperandspublic DrillCalciteSqlFunctionWrapper(org.apache.calcite.sql.SqlFunction wrappedFunction,
List<DrillFuncHolder> functions)
public org.apache.calcite.sql.SqlNode rewriteCall(org.apache.calcite.sql.validate.SqlValidator validator,
org.apache.calcite.sql.SqlCall call)
rewriteCall in class org.apache.calcite.sql.SqlOperatorpublic org.apache.calcite.sql.SqlOperator getOperator()
DrillCalciteSqlWrapperSqlOperatorgetOperator in interface DrillCalciteSqlWrapperSqlOperatorpublic boolean validRexOperands(int count,
org.apache.calcite.util.Litmus litmus)
validRexOperands in class org.apache.calcite.sql.SqlOperatorpublic String getAllowedSignatures(String opNameToUse)
getAllowedSignatures in class org.apache.calcite.sql.SqlOperatorpublic org.apache.calcite.sql.validate.SqlMonotonicity getMonotonicity(org.apache.calcite.sql.SqlOperatorBinding call)
getMonotonicity in class org.apache.calcite.sql.SqlOperatorpublic boolean isDeterministic()
isDeterministic in class org.apache.calcite.sql.SqlOperatorpublic boolean isDynamicFunction()
isDynamicFunction in class org.apache.calcite.sql.SqlOperatorpublic boolean requiresDecimalExpansion()
requiresDecimalExpansion in class org.apache.calcite.sql.SqlOperatorpublic boolean argumentMustBeScalar(int ordinal)
argumentMustBeScalar in class org.apache.calcite.sql.SqlOperatorpublic boolean checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding,
boolean throwOnFailure)
checkOperandTypes in class org.apache.calcite.sql.SqlOperatorpublic org.apache.calcite.sql.SqlSyntax getSyntax()
getSyntax in class org.apache.calcite.sql.SqlFunctionpublic List<String> getParamNames()
getParamNames in class org.apache.calcite.sql.SqlFunctionpublic String getSignatureTemplate(int operandsCount)
getSignatureTemplate in class org.apache.calcite.sql.SqlOperatorpublic org.apache.calcite.rel.type.RelDataType deriveType(org.apache.calcite.sql.validate.SqlValidator validator,
org.apache.calcite.sql.validate.SqlValidatorScope scope,
org.apache.calcite.sql.SqlCall call)
deriveType in class org.apache.calcite.sql.SqlFunctionpublic String toString()
toString in class org.apache.calcite.sql.SqlOperatorpublic void unparse(org.apache.calcite.sql.SqlWriter writer,
org.apache.calcite.sql.SqlCall call,
int leftPrec,
int rightPrec)
unparse in class org.apache.calcite.sql.SqlFunctionCopyright © 2021 The Apache Software Foundation. All rights reserved.