Package org.apache.calcite.materialize
Class MaterializationActor.Materialization
- java.lang.Object
-
- org.apache.calcite.materialize.MaterializationActor.Materialization
-
- Enclosing class:
- MaterializationActor
static class MaterializationActor.Materialization extends java.lang.Object
A query materialized in a table, so that reading from the table gives the same results as executing the query.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MaterializationKey
key
(package private) CalciteSchema.TableEntry
materializedTable
(package private) CalciteSchema
rootSchema
(package private) RelDataType
rowType
(package private) java.lang.String
sql
(package private) java.util.List<java.lang.String>
viewSchemaPath
-
Constructor Summary
Constructors Constructor Description Materialization(MaterializationKey key, CalciteSchema rootSchema, CalciteSchema.TableEntry materializedTable, java.lang.String sql, RelDataType rowType, java.util.List<java.lang.String> viewSchemaPath)
Creates a materialization.
-
-
-
Field Detail
-
key
final MaterializationKey key
-
rootSchema
final CalciteSchema rootSchema
-
materializedTable
CalciteSchema.TableEntry materializedTable
-
sql
final java.lang.String sql
-
rowType
final RelDataType rowType
-
viewSchemaPath
final java.util.List<java.lang.String> viewSchemaPath
-
-
Constructor Detail
-
Materialization
Materialization(MaterializationKey key, CalciteSchema rootSchema, CalciteSchema.TableEntry materializedTable, java.lang.String sql, RelDataType rowType, java.util.List<java.lang.String> viewSchemaPath)
Creates a materialization.- Parameters:
key
- Unique identifier of this materializationmaterializedTable
- Table that currently materializes the query. That is, executing "select * from table" will give the same results as executing the query. May be null when the materialization is created; materialization service will change the value assql
- Query that is materializedrowType
- Row type
-
-