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,
@Nullable List<String> viewPath,
MaterializationKey key) |
| Modifier and Type | Method and Description |
|---|---|
static MaterializedViewTable.MaterializedViewTableMacro |
create(CalciteSchema schema,
String viewSql,
@Nullable List<String> viewSchemaPath,
List<String> viewPath,
@Nullable String suggestedTableName,
boolean existing)
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, getViewPath, getViewSql, viewMacro, viewMacro, viewMacrogetElementType, getExpressiongetStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStatistic, isRolledUp, rolledUpColumnValidInsideAggmaybeUnwrap, unwrapOrThrowpublic static final CalciteConnection MATERIALIZATION_CONNECTION
public MaterializedViewTable(Type elementType, RelProtoDataType relDataType, String viewSql, List<String> viewSchemaPath, @Nullable List<String> viewPath, MaterializationKey key)
public static MaterializedViewTable.MaterializedViewTableMacro create(CalciteSchema schema, String viewSql, @Nullable List<String> viewSchemaPath, List<String> viewPath, @Nullable String suggestedTableName, boolean existing)
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable)
TranslatableTablerelational expression.toRel in interface TranslatableTabletoRel in class ViewTableCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.