Package org.apache.calcite.prepare
Class Prepare.Materialization
- java.lang.Object
-
- org.apache.calcite.prepare.Prepare.Materialization
-
- Enclosing class:
- Prepare
public static class Prepare.Materialization extends java.lang.Object
Describes that a given SQL query is materialized by a given table. The materialization is currently valid, and can be used in the planning process.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CalciteSchema.TableEntry
materializedTable
The table that holds the materialized data.(package private) RelNode
queryRel
Relational expression for the query to populate the table.(package private) java.lang.String
sql
The query that derives the data.private RelOptTable
starRelOptTable
Star table identified.(package private) RelNode
tableRel
Relational expression for the table.(package private) java.util.List<java.lang.String>
viewSchemaPath
The schema path for the query.
-
Constructor Summary
Constructors Constructor Description Materialization(CalciteSchema.TableEntry materializedTable, java.lang.String sql, java.util.List<java.lang.String> viewSchemaPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
materialize(RelNode queryRel, RelOptTable starRelOptTable)
-
-
-
Field Detail
-
materializedTable
final CalciteSchema.TableEntry materializedTable
The table that holds the materialized data.
-
sql
final java.lang.String sql
The query that derives the data.
-
viewSchemaPath
final java.util.List<java.lang.String> viewSchemaPath
The schema path for the query.
-
tableRel
RelNode tableRel
Relational expression for the table. Usually aLogicalTableScan
.
-
queryRel
RelNode queryRel
Relational expression for the query to populate the table.
-
starRelOptTable
private RelOptTable starRelOptTable
Star table identified.
-
-
Constructor Detail
-
Materialization
public Materialization(CalciteSchema.TableEntry materializedTable, java.lang.String sql, java.util.List<java.lang.String> viewSchemaPath)
-
-
Method Detail
-
materialize
public void materialize(RelNode queryRel, RelOptTable starRelOptTable)
-
-