| Modifier and Type | Method and Description |
|---|---|
Hive |
DDLOperationContext.getDb() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
DDLUtils.allowOperationInReplicationScope(Hive db,
String tableName,
Map<String,String> partSpec,
ReplicationSpec replicationSpec)
Validate if the given table/partition is eligible for update.
|
static BaseSemanticAnalyzer |
DDLSemanticAnalyzerFactory.getAnalyzer(ASTNode root,
QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
AbstractPrivilegeAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
GrantAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
RevokeAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
CreateRoleAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
DropRoleAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
GrantRoleAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
RevokeRoleAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
SetRoleAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
ShowCurrentRoleAnalyzer(QueryState queryState,
Hive db) |
ShowRolesAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
ShowGrantAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
ShowPrincipalsAnalyzer(QueryState queryState,
Hive db) |
| Constructor and Description |
|---|
ShowRoleGrantAnalyzer(QueryState queryState,
Hive db) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
AlterTableUtils.allowOperationInReplicationScope(Hive db,
String tableName,
Map<String,String> partSpec,
ReplicationSpec replicationSpec)
Validate if the given table/partition is eligible for update.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AlterTableAddConstraintOperation.addConstraints(AbstractAlterTableWithConstraintsDesc desc,
Hive db) |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonShowTableStatusFormatter.showTableStatus(DataOutputStream out,
Hive db,
HiveConf conf,
List<Table> tables,
Partition partition) |
void |
TextShowTableStatusFormatter.showTableStatus(DataOutputStream out,
Hive db,
HiveConf conf,
List<Table> tables,
Partition partition) |
abstract void |
ShowTableStatusFormatter.showTableStatus(DataOutputStream out,
Hive db,
HiveConf conf,
List<Table> tables,
Partition par) |
| Modifier and Type | Method and Description |
|---|---|
static void |
PartitionUtils.addTablePartsOutputs(Hive db,
Set<WriteEntity> outputs,
Table table,
List<Map<String,String>> partitionSpecs,
boolean allowMany,
WriteEntity.WriteType writeType)
Add the table partitions to be modified in the output, so that it is available for the pre-execution hook.
|
static Partition |
PartitionUtils.getPartition(Hive db,
Table table,
Map<String,String> partitionSpec,
boolean throwException) |
static List<Partition> |
PartitionUtils.getPartitions(Hive db,
Table table,
Map<String,String> partitionSpec,
boolean throwException) |
| Modifier and Type | Method and Description |
|---|---|
protected Hive |
Task.getHive() |
| Modifier and Type | Method and Description |
|---|---|
static String |
ArchiveUtils.conflictingArchiveNameOrNull(Hive db,
Table tbl,
LinkedHashMap<String,String> partSpec)
Determines if one can insert into partition(s), or there's a conflict with
archive.
|
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.hadoop.hive.metastore.api.NotificationEvent> |
OptimisedBootstrapUtils.getListOfNotificationEvents(Long eventId,
Hive hiveDb,
ReplLoadWork work)
Returns list of notificationEvents starting from eventId that are related to the database.
|
static String |
OptimisedBootstrapUtils.getReplEventIdFromDatabase(String dbName,
Hive hiveDb)
Gets the event id stored in database denoting the last loaded event id.
|
static String |
OptimisedBootstrapUtils.getTargetEventId(String dbName,
Hive hiveDb)
Fetches the notification id from the database with respect to target database.
|
static boolean |
OptimisedBootstrapUtils.isDbTargetOfFailover(String dbName,
Hive hive)
Gets & checks whether the database is target of replication.
|
static void |
OptimisedBootstrapUtils.isFirstIncrementalPending(String dbName,
Hive hiveDb)
Validates if the first incremental is done before starting optimised bootstrap
|
static void |
OptimisedBootstrapUtils.prepareTableDiffFile(List<org.apache.hadoop.hive.metastore.api.NotificationEvent> notificationEvents,
Hive hiveDb,
ReplLoadWork work,
HiveConf conf)
Prepares the table diff file, with tables modified post the specified event id.
|
| Modifier and Type | Field and Description |
|---|---|
Hive |
Context.hiveDb |
| Constructor and Description |
|---|
Context(String dumpDirectory,
HiveConf hiveConf,
Hive hiveDb,
LineageState lineageState,
Context nestedContext) |
| Modifier and Type | Method and Description |
|---|---|
Task<?> |
IncrementalLoadTasksBuilder.build(Context context,
Hive hive,
org.slf4j.Logger log,
TaskTracker tracker) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ReplUtils.unsetDbPropIfSet(org.apache.hadoop.hive.metastore.api.Database db,
String prop,
Hive hiveDb) |
| Constructor and Description |
|---|
HBaseCache(Hive hive) |
| Modifier and Type | Method and Description |
|---|---|
static HiveLockObject |
HiveLockObject.createFrom(Hive hiveDB,
String tableName,
Map<String,String> partSpec)
Creates a locking object for a table (when partition spec is not provided)
or a table partition
|
int |
DbTxnManager.lockDatabase(Hive hiveDB,
LockDatabaseDesc lockDb) |
int |
HiveTxnManager.lockDatabase(Hive hiveDB,
LockDatabaseDesc lockDb)
This function is called to lock the database when explicit lock command is
issued on a database.
|
int |
DbTxnManager.lockTable(Hive db,
LockTableDesc lockTbl) |
int |
HiveTxnManager.lockTable(Hive hiveDB,
LockTableDesc lockTbl)
This function is called to lock the table when explicit lock command is
issued on a table.
|
int |
DbTxnManager.unlockDatabase(Hive hiveDB,
UnlockDatabaseDesc unlockDb) |
int |
HiveTxnManager.unlockDatabase(Hive hiveDB,
UnlockDatabaseDesc unlockDb)
This function is called to unlock the database when explicit unlock command
is issued on a database.
|
int |
DbTxnManager.unlockTable(Hive hiveDB,
UnlockTableDesc unlockTbl) |
int |
HiveTxnManager.unlockTable(Hive hiveDB,
UnlockTableDesc unlockTbl)
This function is called to unlock the table when explicit unlock command is
issued on a table.
|
| Modifier and Type | Method and Description |
|---|---|
static Hive |
Hive.createHiveForSession(HiveConf c) |
static Hive |
Hive.get() |
static Hive |
Hive.get(boolean doRegisterAllFns) |
static Hive |
Hive.get(org.apache.hadoop.conf.Configuration c,
Class<?> clazz) |
static Hive |
Hive.get(HiveConf c)
Gets hive object for the current thread.
|
static Hive |
Hive.get(HiveConf c,
boolean needsRefresh)
get a connection to metastore.
|
static Hive |
Hive.get(IMetaStoreClient msc) |
static Hive |
Hive.getThreadLocal() |
static Hive |
Hive.getWithFastCheck(HiveConf c)
Same as
get(HiveConf), except that it checks only the object identity of existing
MS client, assuming the relevant settings would be unchanged within the same conf object. |
static Hive |
Hive.getWithFastCheck(HiveConf c,
boolean doRegisterAllFns)
Same as
get(HiveConf), except that it checks only the object identity of existing
MS client, assuming the relevant settings would be unchanged within the same conf object. |
static Hive |
Hive.getWithoutRegisterFns(HiveConf c)
Same as
get(HiveConf), except that it does not register all functions. |
| Modifier and Type | Method and Description |
|---|---|
void |
HiveMaterializedViewsRegistry.init(Hive db) |
static void |
Hive.set(Hive hive) |
| Constructor and Description |
|---|
PartitionIterable(Hive db,
Table table,
Map<String,String> partialPartitionSpec,
int batchSize)
Primary constructor that fetches all partitions in a given table, given
a Hive object and a table object, and a partial partition spec.
|
PartitionIterable(Hive db,
Table table,
Map<String,String> partialPartitionSpec,
int batchSize,
boolean getColStats)
Primary constructor that fetches all partitions in a given table, given
a Hive object and a table object, and a partial partition spec.
|
PartitionIterable(Hive db,
Table table,
Map<String,String> partialPartitionSpec,
int batchSize,
boolean isAuthRequired,
String userName,
List<String> groupNames) |
| Constructor and Description |
|---|
MSClientNotificationFetcher(Hive hiveDb) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.calcite.rel.RelNode |
HiveMaterializedViewASTSubQueryRewriteShuttle.getMaterializedViewByAST(ASTNode expandedAST,
org.apache.calcite.plan.RelOptCluster optCluster,
Predicate<Set<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) |
RelOptHiveTable(org.apache.calcite.plan.RelOptSchema calciteSchema,
org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
List<String> qualifiedTblName,
org.apache.calcite.rel.type.RelDataType rowType,
Table hiveTblMetadata,
List<ColumnInfo> hiveNonPartitionCols,
List<ColumnInfo> hivePartitionCols,
List<VirtualColumn> hiveVirtualCols,
HiveConf hconf,
Hive db,
ParsedQueryTables tabNameToTabObject,
Map<String,PrunedPartitionList> partitionCache,
Map<String,ColumnStatsList> colStatsCache,
AtomicInteger noColsMissingStats) |
| 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 Hive |
TaskCompiler.db |
protected Hive |
BaseSemanticAnalyzer.db |
| Modifier and Type | Method and Description |
|---|---|
protected static Hive |
BaseSemanticAnalyzer.createHiveDB(HiveConf conf) |
Hive |
BaseSemanticAnalyzer.getDb() |
Hive |
HiveSemanticAnalyzerHookContext.getHive() |
Hive |
HiveSemanticAnalyzerHookContextImpl.getHive() |
Hive |
EximUtil.SemanticAnalyzerWrapperContext.getHive() |
| Modifier and Type | Method and Description |
|---|---|
protected static Table |
RewriteSemanticAnalyzer.getTable(ASTNode tabRef,
Hive db,
boolean throwException) |
void |
TaskCompiler.init(QueryState queryState,
SessionState.LogHelper console,
Hive db) |
void |
TezCompiler.init(QueryState queryState,
SessionState.LogHelper console,
Hive db) |
void |
MapReduceCompiler.init(QueryState queryState,
SessionState.LogHelper console,
Hive db) |
static Table |
ImportSemanticAnalyzer.tableIfExists(ImportTableDesc tblDesc,
Hive db)
Utility method that returns a table if one corresponding to the destination
tblDesc is found.
|
| Constructor and Description |
|---|
BaseSemanticAnalyzer(QueryState queryState,
Hive db) |
SemanticAnalyzerWrapperContext(HiveConf conf,
Hive db,
Set<ReadEntity> inputs,
Set<WriteEntity> outputs,
List<Task<?>> tasks,
org.slf4j.Logger LOG,
Context ctx) |
TableSpec(Hive db,
HiveConf conf,
ASTNode ast) |
TableSpec(Hive db,
HiveConf conf,
ASTNode ast,
boolean allowDynamicPartitionsSpec,
boolean allowPartialPartitionsSpec) |
TableSpec(Hive db,
String tableName,
Map<String,String> partSpec,
boolean allowPartialPartitionsSpec) |
TableSpec(Hive db,
TableName tableName,
Map<String,String> partSpec) |
| Constructor and Description |
|---|
HiveAuthorizationTaskFactoryImpl(HiveConf conf,
Hive db) |
| Constructor and Description |
|---|
HiveWrapper(Hive db,
String dbName) |
HiveWrapper(Hive db,
String dbName,
long lastReplId) |
TableExport(TableExport.Paths paths,
BaseSemanticAnalyzer.TableSpec tableSpec,
ReplicationSpec replicationSpec,
Hive db,
String distCpDoAsUser,
HiveConf conf,
ExportWork.MmContext mmCtx) |
| Constructor and Description |
|---|
Context(org.apache.hadoop.fs.Path eventRoot,
org.apache.hadoop.fs.Path dumpRoot,
org.apache.hadoop.fs.Path cmRoot,
Hive db,
HiveConf hiveConf,
ReplicationSpec replicationSpec,
org.apache.hadoop.hive.common.repl.ReplScope replScope,
org.apache.hadoop.hive.common.repl.ReplScope oldReplScope,
Set<String> tablesForBootstrap) |
| Constructor and Description |
|---|
Context(String dbName,
String location,
Task<?> precursor,
DumpMetaData dmd,
HiveConf hiveConf,
Hive db,
Context nestedContext,
org.slf4j.Logger log) |
Context(String dbName,
String location,
Task<?> precursor,
DumpMetaData dmd,
HiveConf hiveConf,
Hive db,
Context nestedContext,
org.slf4j.Logger log,
String dumpDirectory,
ReplicationMetricCollector metricCollector) |
| Constructor and Description |
|---|
CopyOnWriteMergeRewriter(Hive db,
HiveConf conf,
SqlGeneratorFactory sqlGeneratorFactory) |
MergeRewriter(Hive db,
HiveConf conf,
SqlGeneratorFactory sqlGeneratorFactory) |
SplitMergeRewriter(Hive db,
HiveConf conf,
SqlGeneratorFactory sqlGeneratorFactory) |
| Modifier and Type | Field and Description |
|---|---|
Hive |
DeferredWorkContext.hive |
| Modifier and Type | Method and Description |
|---|---|
void |
ExportWork.acidPostProcess(Hive db)
For exporting Acid table, change the "pointer" to the temp table.
|
| Constructor and Description |
|---|
DeferredWorkContext(boolean replace,
org.apache.hadoop.fs.Path tgtPath,
Long writeId,
int stmtId,
Hive hive,
Context ctx,
ImportTableDesc tblDesc,
boolean inReplScope) |
| Constructor and Description |
|---|
HiveProxy(Hive hive) |
| Constructor and Description |
|---|
HiveV1Authorizer(HiveConf conf,
Hive hive)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Hive |
SessionState.getHiveDb() |
| Modifier and Type | Method and Description |
|---|---|
int |
ColStatsProcessor.persistColumnStats(Hive db,
Table tbl) |
int |
ColStatsProcessor.process(Hive db,
Table tbl) |
int |
IStatsProcessor.process(Hive db,
Table tbl) |
int |
BasicStatsTask.process(Hive db,
Table tbl) |
int |
BasicStatsNoJobTask.process(Hive db,
Table tbl) |
Copyright © 2024 The Apache Software Foundation. All rights reserved.