| Package | Description |
|---|---|
| org.apache.hadoop.hive.ql | |
| org.apache.hadoop.hive.ql.exec |
Hive QL execution tasks, operators, functions and other handlers.
|
| org.apache.hadoop.hive.ql.exec.repl.util | |
| org.apache.hadoop.hive.ql.lockmgr |
Hive Lock Manager interfaces and some custom implmentations
|
| org.apache.hadoop.hive.ql.metadata | |
| org.apache.hadoop.hive.ql.optimizer.calcite | |
| org.apache.hadoop.hive.ql.optimizer.calcite.rules.views | |
| org.apache.hadoop.hive.ql.parse | |
| org.apache.hadoop.hive.ql.parse.repl.load.message | |
| org.apache.hadoop.hive.ql.session |
| Modifier and Type | Field and Description |
|---|---|
protected HiveTxnManager |
Context.hiveTxnManager |
| Modifier and Type | Method and Description |
|---|---|
HiveTxnManager |
Context.getHiveTxnManager() |
HiveTxnManager |
DriverContext.getInitTxnManager() |
HiveTxnManager |
QueryState.getTxnManager() |
HiveTxnManager |
DriverContext.getTxnManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
Driver.releaseLocksAndCommitOrRollback(boolean commit,
HiveTxnManager txnManager) |
void |
Context.setHiveTxnManager(HiveTxnManager txnMgr) |
void |
QueryState.setTxnManager(HiveTxnManager txnManager) |
void |
DriverContext.setTxnManager(HiveTxnManager txnManager) |
| Constructor and Description |
|---|
Driver(QueryState queryState,
QueryInfo queryInfo,
HiveTxnManager txnManager) |
DriverContext(QueryState queryState,
QueryInfo queryInfo,
HookRunner hookRunner,
HiveTxnManager initTxnManager) |
| Modifier and Type | Method and Description |
|---|---|
HiveTxnManager |
Task.getTxnMgr() |
| Modifier and Type | Method and Description |
|---|---|
static List<Long> |
ReplUtils.getOpenTxns(HiveTxnManager hiveTxnManager,
ValidTxnList validTxnList,
String dbName) |
| Modifier and Type | Class and Description |
|---|---|
class |
DbTxnManager
An implementation of HiveTxnManager that stores the transactions in the metastore database.
|
| Modifier and Type | Method and Description |
|---|---|
HiveTxnManager |
TxnManagerFactory.getTxnManager(HiveConf conf)
Create a new transaction manager.
|
| Modifier and Type | Method and Description |
|---|---|
HiveRelOptMaterialization |
Hive.getMaterializedViewForRebuild(String dbName,
String materializedViewName,
Set<TableName> tablesUsed,
HiveTxnManager txnMgr)
Get the target materialized view from the metastore.
|
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).
|
Boolean |
Hive.isOutdatedMaterializedView(HiveTxnManager txnManager,
TableName tableName)
Utility method that returns whether a materialized view is outdated (true), not outdated
(false), or it cannot be determined (null).
|
Boolean |
Hive.isOutdatedMaterializedView(Table materializedViewTable,
Set<TableName> tablesUsed,
boolean forceMVContentsUpToDate,
HiveTxnManager txnMgr)
Utility method that returns whether a materialized view is outdated (true), not outdated
(false), or it cannot be determined (null).
|
boolean |
Hive.validateMaterializedViewsFromRegistry(List<Table> cachedMaterializedViewTables,
Set<TableName> tablesUsed,
HiveTxnManager txnMgr)
Validate that the materialized views retrieved from registry are still up-to-date.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.calcite.rel.RelNode |
HiveMaterializedViewASTSubQueryRewriteShuttle.getMaterializedViewByAST(ASTNode expandedAST,
org.apache.calcite.plan.RelOptCluster optCluster,
Predicate<EnumSet<HiveRelOptMaterialization.RewriteAlgorithm>> filter,
Hive db,
Set<TableName> tablesUsedByOriginalPlan,
HiveTxnManager txnManager)
1.
|
| Constructor and Description |
|---|
HiveMaterializedViewASTSubQueryRewriteShuttle(Map<org.apache.calcite.rel.RelNode,ASTNode> subQueryMap,
ASTNode originalAST,
ASTNode expandedAST,
org.apache.calcite.tools.RelBuilder relBuilder,
Hive db,
Set<TableName> tablesUsedByOriginalPlan,
HiveTxnManager txnManager) |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
HiveMaterializedViewUtils.isOutdatedMaterializedView(String validTxnsList,
HiveTxnManager txnMgr,
Hive db,
Set<TableName> tablesUsed,
Table materializedViewTable)
Utility method that returns whether a materialized view is outdated (true), not outdated
(false), or it cannot be determined (null).
|
| Modifier and Type | Field and Description |
|---|---|
protected HiveTxnManager |
BaseSemanticAnalyzer.txnManager |
| Modifier and Type | Method and Description |
|---|---|
protected HiveTxnManager |
BaseSemanticAnalyzer.getTxnMgr() |
| Modifier and Type | Method and Description |
|---|---|
void |
CacheTableHelper.populateCache(List<org.apache.commons.lang3.tuple.Pair<String,String>> tables,
HiveConf conf,
HiveTxnManager txnMgr)
Populates the cache for the given table pairs.
|
void |
CacheTableHelper.populateCacheForView(List<org.apache.commons.lang3.tuple.Pair<String,String>> tables,
HiveConf conf,
HiveTxnManager txnMgr,
String dbName,
String viewName)
Populates the cache for the given table pairs associated with a viewName.
|
static boolean |
ImportSemanticAnalyzer.prepareImport(boolean isImportCmd,
boolean isLocationSet,
boolean isExternalSet,
boolean isPartSpecSet,
boolean waitOnPrecursor,
String parsedLocation,
String parsedTableName,
String overrideDBName,
LinkedHashMap<String,String> parsedPartSpec,
String fromLocn,
EximUtil.SemanticAnalyzerWrapperContext x,
UpdatedMetaDataTracker updatedMetadata,
HiveTxnManager txnMgr,
long writeId,
MetaData rv)
The same code is used from both the "repl load" as well as "import".
|
static boolean |
ImportSemanticAnalyzer.prepareImport(boolean isImportCmd,
boolean isLocationSet,
boolean isExternalSet,
boolean isPartSpecSet,
boolean waitOnPrecursor,
String parsedLocation,
String parsedTableName,
String overrideDBName,
LinkedHashMap<String,String> parsedPartSpec,
String fromLocn,
EximUtil.SemanticAnalyzerWrapperContext x,
UpdatedMetaDataTracker updatedMetadata,
HiveTxnManager txnMgr,
long writeId,
MetaData rv,
String dumpRoot,
ReplicationMetricCollector metricCollector) |
| Modifier and Type | Method and Description |
|---|---|
HiveTxnManager |
MessageHandler.Context.getTxnMgr() |
| Modifier and Type | Method and Description |
|---|---|
HiveTxnManager |
SessionState.getTxnMgr()
Get the transaction manager for the current SessionState.
|
HiveTxnManager |
SessionState.initTxnMgr(HiveConf conf)
Initialize the transaction manager.
|
HiveTxnManager |
SessionState.setTxnMgr(HiveTxnManager mgr)
This only for testing.
|
| Modifier and Type | Method and Description |
|---|---|
HiveTxnManager |
SessionState.setTxnMgr(HiveTxnManager mgr)
This only for testing.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.