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 java.lang.String |
getTypeName()
Override to change the behavior of
SameOperandTypeChecker.getAllowedSignatures(SqlOperator, String) . |
checkOperandTypesImpl, checkSingleOperandType, getAllowedSignatures, getOperandCountRange, getOperandList, isOptional
private 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)
SqlOperandTypeChecker
checkOperandTypes
in interface SqlOperandTypeChecker
checkOperandTypes
in class SameOperandTypeChecker
callBinding
- 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 SameOperandTypeChecker
protected java.lang.String getTypeName()
SameOperandTypeChecker
SameOperandTypeChecker.getAllowedSignatures(SqlOperator, String)
.getTypeName
in class SameOperandTypeChecker
public SqlOperandTypeChecker.Consistency getConsistency()
SqlOperandTypeChecker
getConsistency
in interface SqlOperandTypeChecker
getConsistency
in class SameOperandTypeChecker
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.