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 Type
    Method
    Description
    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.
  • 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 view
      queryString - Body of the view
      schemaPath - Path of a schema wherein to find referenced tables
      viewPath - Path of the view, ending with its name; may be null
      Returns:
      Relational expression