public class ComparableOperandTypeChecker extends SameOperandTypeChecker
SqlOperandTypeChecker.ConsistencynOperands| Constructor and Description |
|---|
ComparableOperandTypeChecker(int nOperands,
RelDataTypeComparability requiredComparability)
Deprecated.
|
ComparableOperandTypeChecker(int nOperands,
RelDataTypeComparability requiredComparability,
SqlOperandTypeChecker.Consistency consistency) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOperandTypes(SqlCallBinding callBinding,
boolean throwOnFailure)
Checks the types of all operands to an operator call.
|
boolean |
checkOperandTypes(SqlOperatorBinding operatorBinding,
SqlCallBinding callBinding)
Similar functionality to
checkOperandTypes(SqlCallBinding, boolean), but not part of the
interface, and cannot throw an error. |
SqlOperandTypeChecker.Consistency |
getConsistency()
Returns the strategy for making the arguments have consistency types.
|
protected String |
getTypeName()
Override to change the behavior of
SameOperandTypeChecker.getAllowedSignatures(SqlOperator, String). |
checkOperandTypesImpl, checkSingleOperandType, getAllowedSignatures, getOperandCountRange, getOperandList, isOptionalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFixedParameters, typeInference@Deprecated public ComparableOperandTypeChecker(int nOperands, RelDataTypeComparability requiredComparability)
public ComparableOperandTypeChecker(int nOperands,
RelDataTypeComparability requiredComparability,
SqlOperandTypeChecker.Consistency consistency)
public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure)
SqlOperandTypeCheckercheckOperandTypes in interface SqlOperandTypeCheckercheckOperandTypes in class SameOperandTypeCheckercallBinding - description of the call to be checkedthrowOnFailure - whether to throw an exception if check fails
(otherwise returns false in that case)public boolean checkOperandTypes(SqlOperatorBinding operatorBinding, SqlCallBinding callBinding)
checkOperandTypes(SqlCallBinding, boolean), but not part of the
interface, and cannot throw an error.checkOperandTypes in class SameOperandTypeCheckerprotected String getTypeName()
SameOperandTypeCheckerSameOperandTypeChecker.getAllowedSignatures(SqlOperator, String).getTypeName in class SameOperandTypeCheckerpublic SqlOperandTypeChecker.Consistency getConsistency()
SqlOperandTypeCheckergetConsistency in interface SqlOperandTypeCheckergetConsistency in class SameOperandTypeCheckerCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.