|
|||||||||
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.rex.RexCallBinding
public class RexCallBinding
RexCallBinding
implements SqlOperatorBinding
by
referring to an underlying collection of RexNode
operands.
Field Summary | |
---|---|
private RexNode[] |
operands
|
Fields inherited from class org.eigenbase.sql.SqlOperatorBinding |
---|
typeFactory |
Constructor Summary | |
---|---|
RexCallBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator,
RexNode[] operands)
|
Method Summary | |
---|---|
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. |
String |
getStringLiteralOperand(int ordinal)
Gets the string value of a string literal operand. |
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. |
Methods inherited from class org.eigenbase.sql.SqlOperatorBinding |
---|
collectOperandTypes, getColumnListParamInfo, getCursorOperand, getOperator, getTypeFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final RexNode[] operands
Constructor Detail |
---|
public RexCallBinding(RelDataTypeFactory typeFactory, SqlOperator sqlOperator, RexNode[] operands)
Method Detail |
---|
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 EigenbaseException newError(SqlValidatorException e)
SqlOperatorBinding
newError
in class SqlOperatorBinding
e
- Validation error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |