HiveMaterializedViewsRegistry.get().getRewritingMaterializedViews(dbName); if (cachedViews.isEmpty()) {
@Override public void run(HookContext hookContext) throws Exception { SessionState ss = SessionState.get(); if (ss != null && ss.getConf().get(HiveConf.ConfVars.HIVE_SERVER2_MATERIALIZED_VIEWS_REGISTRY_IMPL.varname) .equals("DUMMY")) { HiveMaterializedViewsRegistry.get().init(Hive.get(ss.getConf())); } }
HiveMaterializedViewsRegistry.get().getRewritingMaterializedView( dbName, materializedViewTable.getTableName()); if (materialization != null) { if (HiveMaterializedViewsRegistry.get().isInitialized()) { " was not in the cache"); materialization = HiveMaterializedViewsRegistry.get().createMaterializedView( conf, materializedViewTable); if (materialization != null) {
HiveMaterializedViewsRegistry.get().init();
Hive db = Hive.get(conf); Table mvTable = db.getTable(getWork().getViewName()); HiveMaterializedViewsRegistry.get().createMaterializedView(db.getConf(), mvTable); } else if (getWork().isDisableRewrite()) { HiveMaterializedViewsRegistry.get().dropMaterializedView(names[0], names[1]); } else if (getWork().isUpdateCreationMetadata()) {
HiveMaterializedViewsRegistry.get().init();
HiveMaterializedViewsRegistry.get().dropMaterializedView(tbl);
HiveMaterializedViewsRegistry.get().addMaterializedView(tbl);
HiveMaterializedViewsRegistry.get().dropMaterializedView(tbl);
public void init() throws Exception { // Create remote dirs once. if (mr != null) { createRemoteDirs(); } // Create views registry HiveMaterializedViewsRegistry.get().init(); testWarehouse = conf.getVar(HiveConf.ConfVars.METASTOREWAREHOUSE); String execEngine = conf.get("hive.execution.engine"); conf.set("hive.execution.engine", "mr"); SessionState.start(conf); conf.set("hive.execution.engine", execEngine); db = Hive.get(conf); drv = DriverFactory.newDriver(conf); pd = new ParseDriver(); sem = new SemanticAnalyzer(queryState); }
HiveMaterializedViewsRegistry.get().init();
HiveMaterializedViewsRegistry.get().init();