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.
|
int |
getGroupCount()
If the operator call occurs in an aggregate query, returns the number of
columns in the GROUP BY clause.
|
InitializerExpressionFactory |
getInitializerExpressionFactory()
Returns the factory which supplies default values for INSERT, UPDATE, and
NEW.
|
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()
InitializerExpressionFactory getInitializerExpressionFactory()
SqlValidator getValidator()
RexNode convertLiteral(SqlLiteral literal)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.