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 |
---|---|
private MaterializationKey |
key |
static CalciteConnection |
MATERIALIZATION_CONNECTION
Internal connection, used to execute queries to materialize views.
|
elementType
Constructor and Description |
---|
MaterializedViewTable(java.lang.reflect.Type elementType,
RelProtoDataType relDataType,
java.lang.String viewSql,
java.util.List<java.lang.String> viewSchemaPath,
java.util.List<java.lang.String> viewPath,
MaterializationKey key) |
Modifier and Type | Method and Description |
---|---|
static MaterializedViewTable.MaterializedViewTableMacro |
create(CalciteSchema schema,
java.lang.String viewSql,
java.util.List<java.lang.String> viewSchemaPath,
java.util.List<java.lang.String> viewPath,
java.lang.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, viewMacro
getElementType, getExpression
getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
private final MaterializationKey key
public static final CalciteConnection MATERIALIZATION_CONNECTION
public MaterializedViewTable(java.lang.reflect.Type elementType, RelProtoDataType relDataType, java.lang.String viewSql, java.util.List<java.lang.String> viewSchemaPath, java.util.List<java.lang.String> viewPath, MaterializationKey key)
public static MaterializedViewTable.MaterializedViewTableMacro create(CalciteSchema schema, java.lang.String viewSql, java.util.List<java.lang.String> viewSchemaPath, java.util.List<java.lang.String> viewPath, java.lang.String suggestedTableName, boolean existing)
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable)
TranslatableTable
relational expression
.toRel
in interface TranslatableTable
toRel
in class ViewTable
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.