public class ComparableOperandTypeChecker extends SameOperandTypeChecker
SqlOperandTypeChecker.Consistency| Modifier and Type | Field and Description |
|---|---|
private SqlOperandTypeChecker.Consistency |
consistency |
private RelDataTypeComparability |
requiredComparability |
nOperands| 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. |
private boolean |
checkType(SqlCallBinding callBinding,
boolean throwOnFailure,
RelDataType type) |
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, isOptionalprivate final RelDataTypeComparability requiredComparability
private final SqlOperandTypeChecker.Consistency consistency
@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)private boolean checkType(SqlCallBinding callBinding, boolean throwOnFailure, RelDataType type)
public boolean checkOperandTypes(SqlOperatorBinding 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–2018 The Apache Software Foundation. All rights reserved.