public interface SqlRexContext
SqlRexConvertlet to convert a
SqlNode expression into a RexNode.| Modifier and Type | Method and Description |
|---|---|
RexNode |
convertExpression(SqlNode expr)
|
RexNode |
convertLiteral(SqlLiteral literal)
Converts a literal.
|
DefaultValueFactory |
getDefaultValueFactory()
Returns the factory which supplies default values for INSERT, UPDATE, and
NEW.
|
int |
getGroupCount()
If the operator call occurs in an aggregate query, returns the number of
columns in the GROUP BY clause.
|
RexBuilder |
getRexBuilder()
Returns the
RexBuilder to use to create RexNode objects. |
RexRangeRef |
getSubqueryExpr(SqlCall call)
Returns the expression used to access a given IN or EXISTS
sub-query. |
RelDataTypeFactory |
getTypeFactory()
Returns the type factory.
|
SqlValidator |
getValidator()
Returns the validator.
|
RexNode convertExpression(SqlNode expr)
expr - Expression to translateint getGroupCount()
Returns 0 if the query is implicitly "GROUP BY ()" because of an aggregate expression. For example, "SELECT sum(sal) FROM emp".
Returns -1 if the query is not an aggregate query.
SqlOperatorBinding.getGroupCount()RexBuilder getRexBuilder()
RexBuilder to use to create RexNode objects.RexRangeRef getSubqueryExpr(SqlCall call)
sub-query.call - IN or EXISTS expressionRelDataTypeFactory getTypeFactory()
DefaultValueFactory getDefaultValueFactory()
SqlValidator getValidator()
RexNode convertLiteral(SqlLiteral literal)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.