| Package | Description |
|---|---|
| org.apache.hadoop.hive.ql.metadata | |
| org.apache.hadoop.hive.ql.optimizer.calcite.rules.views | |
| org.apache.hadoop.hive.ql.parse |
| Modifier and Type | Method and Description |
|---|---|
HiveRelOptMaterialization |
HiveRelOptMaterialization.copyToNewCluster(org.apache.calcite.plan.RelOptCluster optCluster) |
HiveRelOptMaterialization |
HiveMaterializedViewsRegistry.createMaterialization(HiveConf conf,
Table materializedViewTable)
Parses and creates a materialization.
|
HiveRelOptMaterialization |
Hive.getMaterializedViewForRebuild(String dbName,
String materializedViewName,
Set<TableName> tablesUsed,
HiveTxnManager txnMgr)
Get the target materialized view from the metastore.
|
HiveRelOptMaterialization |
HiveMaterializedViewsRegistry.getRewritingMaterializedView(String dbName,
String viewName,
EnumSet<RewriteAlgorithm> scope)
Returns the materialized views in the cache for the given database.
|
HiveRelOptMaterialization |
HiveRelOptMaterialization.updateInvalidation(org.apache.hadoop.hive.metastore.api.Materialization materialization) |
| Modifier and Type | Method and Description |
|---|---|
List<HiveRelOptMaterialization> |
MaterializedViewsCache.get(ASTNode astNode) |
List<HiveRelOptMaterialization> |
Hive.getMaterializedViewsByAST(ASTNode astNode,
Set<TableName> tablesUsed,
HiveTxnManager txnMgr)
Get the materialized views from the metastore or from the registry which has the same query definition as the
specified sql query text.
|
List<HiveRelOptMaterialization> |
Hive.getPreprocessedMaterializedViews(Set<TableName> tablesUsed,
HiveTxnManager txnMgr)
Get the materialized views that have been enabled for rewriting from the
metastore.
|
List<HiveRelOptMaterialization> |
Hive.getPreprocessedMaterializedViewsFromRegistry(Set<TableName> tablesUsed,
HiveTxnManager txnMgr)
Get the materialized views that have been enabled for rewriting from the
cache (registry).
|
List<HiveRelOptMaterialization> |
HiveMaterializedViewsRegistry.getRewritingMaterializedViews(ASTNode ast) |
List<HiveRelOptMaterialization> |
MaterializedViewsCache.values() |
| Modifier and Type | Method and Description |
|---|---|
void |
MaterializedViewsCache.putIfAbsent(Table materializedViewTable,
HiveRelOptMaterialization materialization) |
void |
MaterializedViewsCache.refresh(Table oldMaterializedViewTable,
Table materializedViewTable,
HiveRelOptMaterialization newMaterialization) |
| Modifier and Type | Method and Description |
|---|---|
static HiveRelOptMaterialization |
HiveMaterializedViewUtils.augmentMaterializationWithTimeInformation(HiveRelOptMaterialization materialization,
String validTxnsList,
MaterializationSnapshot snapshot)
Method to enrich the materialization query contained in the input with
its invalidation.
|
| Modifier and Type | Method and Description |
|---|---|
static List<HiveRelOptMaterialization> |
HiveMaterializedViewUtils.deriveGroupingSetsMaterializedViews(HiveRelOptMaterialization materialization)
If a materialization does not contain grouping sets, it returns the materialization
itself.
|
| Modifier and Type | Method and Description |
|---|---|
static HiveRelOptMaterialization |
HiveMaterializedViewUtils.augmentMaterializationWithTimeInformation(HiveRelOptMaterialization materialization,
String validTxnsList,
MaterializationSnapshot snapshot)
Method to enrich the materialization query contained in the input with
its invalidation.
|
static List<HiveRelOptMaterialization> |
HiveMaterializedViewUtils.deriveGroupingSetsMaterializedViews(HiveRelOptMaterialization materialization)
If a materialization does not contain grouping sets, it returns the materialization
itself.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.calcite.rel.RelNode |
CalcitePlanner.CalcitePlannerAction.executeProgram(org.apache.calcite.rel.RelNode basePlan,
org.apache.calcite.plan.hep.HepProgram program,
org.apache.calcite.rel.metadata.RelMetadataProvider mdProvider,
org.apache.calcite.rex.RexExecutor executorProvider,
List<HiveRelOptMaterialization> materializations) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.