|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.SqlOperatorBinding
public abstract class SqlOperatorBinding
SqlOperatorBinding represents the binding of an SqlOperator to actual operands, along with any additional information
required to validate those operands if needed.
| Field Summary | |
|---|---|
private SqlOperator |
sqlOperator
|
protected RelDataTypeFactory |
typeFactory
|
| Constructor Summary | |
|---|---|
protected |
SqlOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator)
Creates a SqlOperatorBinding. |
| Method Summary | |
|---|---|
RelDataType[] |
collectOperandTypes()
Collects the types of the bound operands into an array. |
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. |
abstract int |
getOperandCount()
|
abstract RelDataType |
getOperandType(int ordinal)
Gets the type of a bound operand. |
SqlOperator |
getOperator()
|
String |
getStringLiteralOperand(int ordinal)
Gets the string value of a string literal operand. |
RelDataTypeFactory |
getTypeFactory()
|
boolean |
isOperandNull(int ordinal,
boolean allowCast)
Determines whether a bound operand is NULL. |
abstract EigenbaseException |
newError(SqlValidatorException e)
Wraps a validation error with context appropriate to this operator call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final RelDataTypeFactory typeFactory
private final SqlOperator sqlOperator
| Constructor Detail |
|---|
protected SqlOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator)
typeFactory - Type factorysqlOperator - Operator which is subject of this call| Method Detail |
|---|
public SqlOperator getOperator()
public RelDataTypeFactory getTypeFactory()
public String getStringLiteralOperand(int ordinal)
ordinal - zero-based ordinal of operand of interest
public int getIntLiteralOperand(int ordinal)
ordinal - zero-based ordinal of operand of interest
public boolean isOperandNull(int ordinal,
boolean allowCast)
This is only relevant for SQL validation.
ordinal - zero-based ordinal of operand of interestallowCast - whether to regard CAST(constant) as a constant
public abstract int getOperandCount()
public abstract RelDataType getOperandType(int ordinal)
ordinal - zero-based ordinal of operand of interest
public RelDataType[] collectOperandTypes()
public RelDataType getCursorOperand(int ordinal)
ordinalth operand, which is a
cursor.
This is only implemented for SqlCallBinding.
ordinal - Ordinal of the operand
public String getColumnListParamInfo(int ordinal,
String paramName,
List<String> columnList)
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 abstract EigenbaseException newError(SqlValidatorException e)
e - Validation error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||