public class MaterializedViewTable extends ViewTable
It can exist in two states: materialized and not materialized. Over time,
a given materialized view may switch states. How it is expanded depends upon
its current state. State is managed by
MaterializationService.
| Modifier and Type | Class and Description |
|---|---|
static class |
MaterializedViewTable.MaterializedViewTableMacro
Table function that returns the table that materializes a view.
|
| Modifier and Type | Field and Description |
|---|---|
static CalciteConnection |
MATERIALIZATION_CONNECTION
Internal connection, used to execute queries to materialize views.
|
elementType| Constructor and Description |
|---|
MaterializedViewTable(Type elementType,
RelProtoDataType relDataType,
String viewSql,
List<String> viewSchemaPath,
MaterializationKey key) |
| Modifier and Type | Method and Description |
|---|---|
static MaterializedViewTable.MaterializedViewTableMacro |
create(CalciteSchema schema,
String viewSql,
List<String> viewSchemaPath,
String tableName)
Table macro that returns a materialized view.
|
RelNode |
toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable)
Converts this table into a
relational expression. |
asQueryable, getJdbcTableType, getRowType, getSchemaPath, getViewSql, viewMacrogetElementType, getExpressiongetStatisticclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStatisticpublic static final CalciteConnection MATERIALIZATION_CONNECTION
public MaterializedViewTable(Type elementType, RelProtoDataType relDataType, String viewSql, List<String> viewSchemaPath, MaterializationKey key)
public static MaterializedViewTable.MaterializedViewTableMacro create(CalciteSchema schema, String viewSql, List<String> viewSchemaPath, String tableName)
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable)
TranslatableTablerelational expression.toRel in interface TranslatableTabletoRel in class ViewTableCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.