public final class HiveMaterializedViewsRegistry extends Object
Modifier and Type | Method and Description |
---|---|
HiveRelOptMaterialization |
createMaterialization(HiveConf conf,
Table materializedViewTable)
Parses and creates a materialization.
|
void |
createMaterializedView(HiveConf conf,
Table materializedViewTable)
Adds a newly created materialized view to the cache.
|
void |
dropMaterializedView(String dbName,
String tableName)
Removes the materialized view from the cache (based on qualified name), if exists.
|
void |
dropMaterializedView(Table materializedViewTable)
Removes the materialized view from the cache (based on table object equality), if exists.
|
static HiveMaterializedViewsRegistry |
get()
Get instance of HiveMaterializedViewsRegistry.
|
HiveRelOptMaterialization |
getRewritingMaterializedView(String dbName,
String viewName,
EnumSet<HiveRelOptMaterialization.RewriteAlgorithm> scope)
Returns the materialized views in the cache for the given database.
|
List<HiveRelOptMaterialization> |
getRewritingMaterializedViews(ASTNode ast) |
void |
init()
Initialize the registry for the given database.
|
void |
init(Hive db) |
boolean |
isEmpty() |
boolean |
isInitialized() |
void |
refreshMaterializedView(HiveConf conf,
Table materializedViewTable)
Update the materialized view in the registry (if materialized view exists).
|
void |
refreshMaterializedView(HiveConf conf,
Table oldMaterializedViewTable,
Table materializedViewTable)
Update the materialized view in the registry (if existing materialized view matches).
|
public static HiveMaterializedViewsRegistry get()
public void init()
public void init(Hive db)
public boolean isInitialized()
public HiveRelOptMaterialization createMaterialization(HiveConf conf, Table materializedViewTable)
public void createMaterializedView(HiveConf conf, Table materializedViewTable)
public void refreshMaterializedView(HiveConf conf, Table materializedViewTable)
public void refreshMaterializedView(HiveConf conf, Table oldMaterializedViewTable, Table materializedViewTable)
public void dropMaterializedView(Table materializedViewTable)
public void dropMaterializedView(String dbName, String tableName)
public HiveRelOptMaterialization getRewritingMaterializedView(String dbName, String viewName, EnumSet<HiveRelOptMaterialization.RewriteAlgorithm> scope)
public List<HiveRelOptMaterialization> getRewritingMaterializedViews(ASTNode ast)
public boolean isEmpty()
Copyright © 2023 The Apache Software Foundation. All rights reserved.