Package org.apache.calcite.plan
Interface RelOptTable.ViewExpander
- All Known Subinterfaces:
RelOptTable.ToRelContext
- All Known Implementing Classes:
CalcitePrepareImpl.CalcitePreparingStmt
,PlannerImpl
,PlannerImpl.ViewExpanderImpl
- Enclosing interface:
RelOptTable
public static interface RelOptTable.ViewExpander
Can expand a view into relational expressions.
-
Method Summary
Modifier and TypeMethodDescriptionexpandView
(RelDataType rowType, String queryString, List<String> schemaPath, @Nullable List<String> viewPath) Returns a relational expression that is to be substituted for an access to a SQL view.
-
Method Details
-
expandView
RelRoot expandView(RelDataType rowType, String queryString, List<String> schemaPath, @Nullable List<String> viewPath) Returns a relational expression that is to be substituted for an access to a SQL view.- Parameters:
rowType
- 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 null- Returns:
- Relational expression
-