class LixToRelTranslator extends Object implements RelOptTable.ToRelContext
QueryableRelBuilder| Modifier and Type | Field and Description |
|---|---|
(package private) RelOptCluster |
cluster |
private Prepare |
preparingStmt |
(package private) JavaTypeFactory |
typeFactory |
| Constructor and Description |
|---|
LixToRelTranslator(RelOptCluster cluster,
Prepare preparingStmt) |
| Modifier and Type | Method and Description |
|---|---|
RelRoot |
expandView(RelDataType rowType,
String queryString,
List<String> schemaPath,
List<String> viewPath)
Returns a relational expression that is to be substituted for an access
to a SQL view.
|
(package private) List<Expression> |
fieldExpressions(Expression expression) |
RelOptCluster |
getCluster() |
(package private) RexNode |
toRex(FunctionExpression expression,
RelNode... inputs) |
private List<RexNode> |
toRex(RelNode child,
FunctionExpression expression) |
(package private) List<RexNode> |
toRexList(FunctionExpression expression,
RelNode... inputs) |
RelNode |
translate(Expression expression) |
<T> RelNode |
translate(Queryable<T> queryable) |
final RelOptCluster cluster
private final Prepare preparingStmt
final JavaTypeFactory typeFactory
LixToRelTranslator(RelOptCluster cluster, Prepare preparingStmt)
public RelOptCluster getCluster()
getCluster in interface RelOptTable.ToRelContextpublic RelRoot expandView(RelDataType rowType, String queryString, List<String> schemaPath, List<String> viewPath)
RelOptTable.ViewExpanderexpandView in interface RelOptTable.ViewExpanderrowType - Row type of the viewqueryString - Body of the viewschemaPath - Path of a schema wherein to find referenced tablesviewPath - Path of the view, ending with its name; may be nullpublic RelNode translate(Expression expression)
private List<RexNode> toRex(RelNode child, FunctionExpression expression)
List<Expression> fieldExpressions(Expression expression)
List<RexNode> toRexList(FunctionExpression expression, RelNode... inputs)
RexNode toRex(FunctionExpression expression, RelNode... inputs)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.