|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ordinal th 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 nodeMethod Detail |
---|
public SqlValidator getValidator()
public SqlValidatorScope getScope()
public SqlCall getCall()
public String getStringLiteralOperand(int ordinal)
SqlOperatorBinding
getStringLiteralOperand
in class SqlOperatorBinding
ordinal
- zero-based ordinal of operand of interest
public int getIntLiteralOperand(int ordinal)
SqlOperatorBinding
getIntLiteralOperand
in class SqlOperatorBinding
ordinal
- zero-based ordinal of operand of interest
public boolean isOperandNull(int ordinal, boolean allowCast)
SqlOperatorBinding
This is only relevant for SQL validation.
isOperandNull
in class SqlOperatorBinding
ordinal
- zero-based ordinal of operand of interestallowCast
- whether to regard CAST(constant) as a constant
public int getOperandCount()
getOperandCount
in class SqlOperatorBinding
public RelDataType getOperandType(int ordinal)
SqlOperatorBinding
getOperandType
in class SqlOperatorBinding
ordinal
- zero-based ordinal of operand of interest
public RelDataType getCursorOperand(int ordinal)
SqlOperatorBinding
ordinal
th operand, which is a
cursor.
This is only implemented for SqlCallBinding
.
getCursorOperand
in class SqlOperatorBinding
ordinal
- Ordinal of the operand
public String getColumnListParamInfo(int ordinal, String paramName, List<String> columnList)
SqlOperatorBinding
getColumnListParamInfo
in class SqlOperatorBinding
ordinal
- 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 SqlOperatorBinding
e
- 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 |