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 callBinding)
Similar functionality to
checkOperandTypes(SqlCallBinding, boolean), but not part of the
interface, and cannot throw an error. |
String |
getAllowedSignatures(SqlOperator op,
String opName)
Returns a string describing the allowed formal signatures of a call, e.g.
|
SqlOperandTypeChecker.Consistency |
getConsistency()
Returns the strategy for making the arguments have consistency types.
|
checkSingleOperandType, getOperandCountRange, getOperandList@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 callBinding)
checkOperandTypes(SqlCallBinding, boolean), but not part of the
interface, and cannot throw an error.checkOperandTypes in class SameOperandTypeCheckerpublic String getAllowedSignatures(SqlOperator op, String opName)
SqlOperandTypeCheckergetAllowedSignatures in interface SqlOperandTypeCheckergetAllowedSignatures in class SameOperandTypeCheckerop - the operator being checkedopName - name to use for the operator in case of aliasingpublic SqlOperandTypeChecker.Consistency getConsistency()
SqlOperandTypeCheckergetConsistency in interface SqlOperandTypeCheckergetConsistency in class SameOperandTypeCheckerCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.