@Internal public final class TypeInferenceOperandChecker extends Object implements org.apache.calcite.sql.type.SqlOperandTypeChecker
SqlOperandTypeChecker
backed by TypeInference
.
Note: This class must be kept in sync with TypeInferenceUtil
.
Constructor and Description |
---|
TypeInferenceOperandChecker(DataTypeFactory dataTypeFactory,
FunctionDefinition definition,
TypeInference typeInference) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding,
boolean throwOnFailure) |
String |
getAllowedSignatures(org.apache.calcite.sql.SqlOperator op,
String opName) |
org.apache.calcite.sql.type.SqlOperandTypeChecker.Consistency |
getConsistency() |
org.apache.calcite.sql.SqlOperandCountRange |
getOperandCountRange() |
boolean |
isOptional(int i) |
public TypeInferenceOperandChecker(DataTypeFactory dataTypeFactory, FunctionDefinition definition, TypeInference typeInference)
public boolean checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding, boolean throwOnFailure)
checkOperandTypes
in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
public org.apache.calcite.sql.SqlOperandCountRange getOperandCountRange()
getOperandCountRange
in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
public String getAllowedSignatures(org.apache.calcite.sql.SqlOperator op, String opName)
getAllowedSignatures
in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
public org.apache.calcite.sql.type.SqlOperandTypeChecker.Consistency getConsistency()
getConsistency
in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
public boolean isOptional(int i)
isOptional
in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.