public class SameOperandTypeExceptLastOperandChecker extends SameOperandTypeChecker
SqlOperandTypeChecker.Consistency
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
lastOperandTypeName |
nOperands
Constructor and Description |
---|
SameOperandTypeExceptLastOperandChecker(int nOperands,
java.lang.String lastOperandTypeName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkOperandTypesImpl(SqlOperatorBinding operatorBinding,
boolean throwOnFailure,
SqlCallBinding callBinding) |
java.lang.String |
getAllowedSignatures(SqlOperator op,
java.lang.String opName)
Returns a string describing the allowed formal signatures of a call, e.g.
|
checkOperandTypes, checkOperandTypes, checkSingleOperandType, getConsistency, getOperandCountRange, getOperandList, getTypeName, isOptional
public SameOperandTypeExceptLastOperandChecker(int nOperands, java.lang.String lastOperandTypeName)
protected boolean checkOperandTypesImpl(SqlOperatorBinding operatorBinding, boolean throwOnFailure, SqlCallBinding callBinding)
checkOperandTypesImpl
in class SameOperandTypeChecker
public java.lang.String getAllowedSignatures(SqlOperator op, java.lang.String opName)
SqlOperandTypeChecker
getAllowedSignatures
in interface SqlOperandTypeChecker
getAllowedSignatures
in class SameOperandTypeChecker
op
- the operator being checkedopName
- name to use for the operator in case of aliasingCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.