public interface SqlOperandTypeChecker
This interface is an example of the
strategy pattern.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SqlOperandTypeChecker.Consistency
Strategy used to make arguments consistent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOperandTypes(SqlCallBinding callBinding,
boolean throwOnFailure)
Checks the types of all operands to an operator call.
|
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.
|
SqlOperandCountRange |
getOperandCountRange() |
boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure)
callBinding - description of the call to be checkedthrowOnFailure - whether to throw an exception if check fails
(otherwise returns false in that case)SqlOperandCountRange getOperandCountRange()
String getAllowedSignatures(SqlOperator op, String opName)
op - the operator being checkedopName - name to use for the operator in case of aliasingSqlOperandTypeChecker.Consistency getConsistency()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.