|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.SqlOperatorBinding
org.eigenbase.sql.SqlCallBinding
public class SqlCallBinding
SqlCallBinding implements SqlOperatorBinding by
analyzing to the operands of a SqlCall with a SqlValidator.
| Field Summary | |
|---|---|
private SqlCall |
call
|
private SqlValidatorScope |
scope
|
private SqlValidator |
validator
|
| Fields inherited from class org.eigenbase.sql.SqlOperatorBinding |
|---|
typeFactory |
| Constructor Summary | |
|---|---|
SqlCallBinding(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Creates a call binding. |
|
| Method Summary | |
|---|---|
SqlCall |
getCall()
Returns the call node. |
String |
getColumnListParamInfo(int ordinal,
String paramName,
List<String> columnList)
Retrieves information about a column list parameter. |
RelDataType |
getCursorOperand(int ordinal)
Returns the rowtype of the ordinalth operand, which is a
cursor. |
int |
getIntLiteralOperand(int ordinal)
Gets the integer value of a numeric literal operand. |
int |
getOperandCount()
|
RelDataType |
getOperandType(int ordinal)
Gets the type of a bound operand. |
SqlValidatorScope |
getScope()
Returns the scope of the call. |
String |
getStringLiteralOperand(int ordinal)
Gets the string value of a string literal operand. |
SqlValidator |
getValidator()
Returns the validator. |
boolean |
isOperandNull(int ordinal,
boolean allowCast)
Determines whether a bound operand is NULL. |
EigenbaseException |
newError(SqlValidatorException e)
Wraps a validation error with context appropriate to this operator call. |
EigenbaseException |
newValidationError(SqlValidatorException ex)
Constructs a new validation error for the call. |
EigenbaseException |
newValidationSignatureError()
Constructs a new validation signature error for the call. |
| Methods inherited from class org.eigenbase.sql.SqlOperatorBinding |
|---|
collectOperandTypes, getOperator, getTypeFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final SqlValidator validator
private final SqlValidatorScope scope
private final SqlCall call
| Constructor Detail |
|---|
public SqlCallBinding(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
validator - Validatorscope - Scope of callcall - Call node| Method Detail |
|---|
public SqlValidator getValidator()
public SqlValidatorScope getScope()
public SqlCall getCall()
public String getStringLiteralOperand(int ordinal)
SqlOperatorBinding
getStringLiteralOperand in class SqlOperatorBindingordinal - zero-based ordinal of operand of interest
public int getIntLiteralOperand(int ordinal)
SqlOperatorBinding
getIntLiteralOperand in class SqlOperatorBindingordinal - zero-based ordinal of operand of interest
public boolean isOperandNull(int ordinal,
boolean allowCast)
SqlOperatorBindingThis is only relevant for SQL validation.
isOperandNull in class SqlOperatorBindingordinal - zero-based ordinal of operand of interestallowCast - whether to regard CAST(constant) as a constant
public int getOperandCount()
getOperandCount in class SqlOperatorBindingpublic RelDataType getOperandType(int ordinal)
SqlOperatorBinding
getOperandType in class SqlOperatorBindingordinal - zero-based ordinal of operand of interest
public RelDataType getCursorOperand(int ordinal)
SqlOperatorBindingordinalth operand, which is a
cursor.
This is only implemented for SqlCallBinding.
getCursorOperand in class SqlOperatorBindingordinal - Ordinal of the operand
public String getColumnListParamInfo(int ordinal,
String paramName,
List<String> columnList)
SqlOperatorBinding
getColumnListParamInfo in class SqlOperatorBindingordinal - ordinal position of the column list parameterparamName - name of the column list parametercolumnList - returns a list of the column names that are referenced
in the column list parameter
public EigenbaseException newError(SqlValidatorException e)
SqlOperatorBinding
newError in class SqlOperatorBindinge - Validation error
public EigenbaseException newValidationSignatureError()
public EigenbaseException newValidationError(SqlValidatorException ex)
ex - underlying exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||