public class SessionHiveMetaStoreClient extends HiveMetaStoreClientWithLocalCache implements IMetaStoreClient
SessionState.setCurrentSessionState(SessionState)) pass SessionState to forked threads.
Currently it looks like those threads only read metadata but this is fragile.
Also, maps (in SessionState) where tempt table metadata is stored are concurrent and so
any put/get crosses a memory barrier and so does using most java.util.concurrent.*
so the readers of the objects in these maps should have the most recent view of the object.
But again, could be fragile.| Modifier and Type | Class and Description |
|---|---|
protected static class |
SessionHiveMetaStoreClient.MapWrapper
Wrapper to create a cache around a Map.
|
HiveMetaStoreClientWithLocalCache.CacheI, HiveMetaStoreClientWithLocalCache.CacheKey, HiveMetaStoreClientWithLocalCache.CacheWrapper, HiveMetaStoreClientWithLocalCache.KeyType, HiveMetaStoreClientWithLocalCache.TableWatermarkHiveMetaStoreClient.MetastoreMapIterable<K,V>IMetaStoreClient.IncompatibleMetastoreException, IMetaStoreClient.NotificationFilterconf, MANUALLY_INITIATED_COMPACTION, RENAME_PARTITION_MAKE_COPY, TEST_VERSION, TRUNCATE_SKIP_DATA_DELETION, VERSIONcomputePartitionsByNamesFinal, computeTableColumnStatisticsFinal, computeValidWriteIdsFinal, getPartitionsByNamesCache, getQueryId, getTableColumnStatisticsCache, getValidWriteIdsCache, init, loadPartitionsByNamesCache, loadTableColumnStatisticsCache, loadValidWriteIdsCacheabortTxns, add_partition, addCheckConstraint, addDefaultConstraint, addDynamicPartitions, addDynamicPartitions, addForeignKey, addMasterKey, addNotNullConstraint, addPackage, addPrimaryKey, addReplicationMetrics, addRuntimeStat, addSchemaVersion, addSerDe, addToken, addUniqueConstraint, addWriteNotificationLog, addWriteNotificationLogInBatch, allocateTableWriteId, allocateTableWriteId, allocateTableWriteIdsBatch, alter_partition, alter_partition, alter_partitions, alter_partitions, alter_partitions, alter_table, alterCatalog, alterDatabase, alterDatabase, alterDataConnector, alterFunction, alterFunction, alterISchema, alterResourcePlan, alterWMPool, alterWMTrigger, appendPartition, appendPartition, appendPartition, appendPartitionByName, appendPartitionByName, buildPartitionsByExprRequest, cacheFileMetadata, cancelDelegationToken, checkLock, clearFileMetadata, close, commitTxn, commitTxn, commitTxnWithKeyValue, compact, compact, compact2, compact2, create_role, createCatalog, createDatabase, createDataConnector, createFunction, createISchema, createOrDropTriggerToPoolMapping, createOrUpdateWMMapping, createResourcePlan, createStoredProcedure, createTable, createTable, createTable, createTableWithConstraints, createType, createWMPool, createWMTrigger, deepCopy, deepCopy, deepCopy, deepCopyFieldSchemas, deepCopyPartitions, deletePartitionColumnStatistics, deletePartitionColumnStatistics, deleteTableColumnStatistics, drop_role, dropCatalog, dropConstraint, dropConstraint, dropDatabase, dropDatabase, dropDatabase, dropDatabase, dropDataConnector, dropFunction, dropFunction, dropISchema, dropPackage, dropPartition, dropPartition, dropPartition, dropPartition, dropPartition, dropPartition, dropPartitionByName, dropPartitionByName, dropPartitions, dropPartitions, dropPartitions, dropResourcePlan, dropSchemaVersion, dropStoredProcedure, dropTable, dropTable, dropTable, dropTable, dropTable, dropTable, dropType, dropWMMapping, dropWMPool, dropWMTrigger, exchange_partition, exchange_partitions, findColumnsWithStats, findNextCompact, findNextCompact, findPackage, fireListenerEvent, flushCache, get_principals_in_role, get_role_grants_for_principal, getActiveResourcePlan, getAggrColStatsFor, getAggrColStatsFor, getAggrColStatsFor, getAggrColStatsFor, getAllDatabases, getAllDatabases, getAllDataConnectorNames, getAllFunctions, getAllMaterializedViewObjectsForRewriting, getAllResourcePlans, getAllStoredProcedures, getAllTableConstraints, getAllTables, getAllTokenIdentifiers, getAllWriteEventInfo, getCatalog, getCatalogs, getCheckConstraints, getConfigValue, getCurrentNotificationEventId, getDatabase, getDatabase, getDatabases, getDatabases, getDataConnector, getDefaultConstraints, getDelegationToken, getDelegationToken, getFields, getFields, getFieldsRequest, getFileMetadata, getFileMetadataBySarg, getForeignKeys, getFunction, getFunction, getFunctions, getFunctions, getISchema, getLatestCommittedCompactionInfo, getLatestTxnIdInConflict, getMasterKeys, getMaterializationInvalidationInfo, getMaterializedViewsForRewriting, getMaterializedViewsForRewriting, getMaxAllocatedWriteId, getMetaConf, getMetastoreDbUuid, getNextNotification, getNextNotification, getNotificationEventsCount, getNotNullConstraints, getNumPartitionsByFilter, getOpenTxns, getPartition, getPartition, getPartitionColumnStatistics, getPartitionColumnStatistics, getPartitionColumnStatistics, getPartitionColumnStatistics, getPartitionRequest, getPartitionsByNames, getPartitionsByNames, getPartitionsRequest, getPartitionsWithSpecs, getPartitionWithAuthInfo, getPrimaryKeys, getProcessorCapabilities, getProcessorIdentifier, getReplicationMetrics, getResourcePlan, getRuntimeStats, getScheduledQuery, getSchema, getSchemaAllVersions, getSchemaByCols, getSchemaLatestVersion, getSchemaRequest, getSchemaVersion, getSerDe, getServerVersion, getStoredProcedure, getTable, getTable, getTableColumnStatistics, getTableColumnStatistics, getTableColumnStatistics, getTableMeta, getTableObjectsByName, getTables, getTables, getTables, getTablesExt, getToken, getTokenStrForm, getTranslateTableDryrun, getTriggersForResourcePlan, getTTransport, getType, getTypeAll, getUniqueConstraints, getValidTxns, getValidTxns, getValidTxns, getValidWriteIds, getValidWriteIds, getValidWriteIds, grant_privileges, grant_role, heartbeat, heartbeatLockMaterializationRebuild, heartbeatTxnRange, insertTable, isCompatibleWith, isLocalMetaStore, isPartitionMarkedForEvent, isPartitionMarkedForEvent, isSameConfObj, list_privileges, list_roles, listPackages, listPartitionNames, listPartitionNames, listPartitions, listPartitions, listPartitionsByExpr, listPartitionsByFilter, listPartitionSpecs, listPartitionSpecsByFilter, listPartitionsWithAuthInfo, listPartitionsWithAuthInfo, listRoleNames, listTableNamesByFilter, listTableNamesByFilter, lock, lockMaterializationRebuild, mapSchemaVersionToSerde, markCleaned, markCompacted, markFailed, markPartitionForEvent, markPartitionForEvent, markRefused, newSynchronizedClient, openTxn, openTxn, openTxns, partitionNameToSpec, partitionNameToVals, putFileMetadata, reconnect, recycleDirToCmPath, refresh_privileges, removeCompactionMetricsData, removeMasterKey, removeToken, renamePartition, renewDelegationToken, replAllocateTableWriteIdsBatch, replOpenTxn, replRollbackTxn, replTableWriteIdState, revoke_privileges, revoke_role, rollbackTxn, scheduledQueryMaintenance, scheduledQueryPoll, scheduledQueryProgress, seedTxnId, seedWriteId, setHadoopJobid, setHiveAddedJars, setMetaConf, setProcessorCapabilities, setProcessorIdentifier, setSchemaVersionState, showCompactions, showCompactions, showLocks, showLocks, showTxns, submitForCleanup, tableExists, truncateTable, unlock, updateCompactionMetricsData, updateCompactorState, updateCreationMetadata, updateCreationMetadata, updateMasterKey, updatePartitionColumnStatistics, updateTableColumnStatistics, updateTransactionalStatistics, validatePartitionNameCharacters, validateResourcePlanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortTxns, addCheckConstraint, addDefaultConstraint, addDynamicPartitions, addDynamicPartitions, addForeignKey, addMasterKey, addNotNullConstraint, addPackage, addPrimaryKey, addReplicationMetrics, addRuntimeStat, addSchemaVersion, addSerDe, addToken, addUniqueConstraint, addWriteNotificationLog, addWriteNotificationLogInBatch, allocateTableWriteId, allocateTableWriteId, allocateTableWriteIdsBatch, alter_partition, alter_partition, alter_partition, alter_partitions, alter_partitions, alter_partitions, alter_partitions, alter_table, alter_table, alterCatalog, alterDatabase, alterDatabase, alterDataConnector, alterFunction, alterFunction, alterISchema, alterResourcePlan, alterWMPool, alterWMTrigger, appendPartition, appendPartition, cacheFileMetadata, cancelDelegationToken, checkLock, clearFileMetadata, close, commitTxn, commitTxn, commitTxnWithKeyValue, compact, compact, compact2, compact2, create_role, createCatalog, createDatabase, createDataConnector, createFunction, createISchema, createOrDropTriggerToPoolMapping, createOrUpdateWMMapping, createResourcePlan, createStoredProcedure, createTable, createTable, createTableWithConstraints, createWMPool, createWMTrigger, deletePartitionColumnStatistics, deletePartitionColumnStatistics, deleteTableColumnStatistics, drop_role, dropCatalog, dropConstraint, dropConstraint, dropDatabase, dropDatabase, dropDatabase, dropDatabase, dropDatabase, dropDatabase, dropDatabase, dropDataConnector, dropFunction, dropFunction, dropISchema, dropPackage, dropPartition, dropPartition, dropPartition, dropPartition, dropPartitions, dropPartitions, dropPartitions, dropPartitions, dropPartitions, dropResourcePlan, dropSchemaVersion, dropStoredProcedure, dropTable, dropTable, dropTable, dropTable, dropTable, dropTable, dropTable, dropWMMapping, dropWMPool, dropWMTrigger, exchange_partition, exchange_partitions, findColumnsWithStats, findNextCompact, findNextCompact, findPackage, fireListenerEvent, flushCache, get_principals_in_role, get_role_grants_for_principal, getActiveResourcePlan, getAggrColStatsFor, getAggrColStatsFor, getAggrColStatsFor, getAggrColStatsFor, getAllDatabases, getAllDatabases, getAllDataConnectorNames, getAllFunctions, getAllMaterializedViewObjectsForRewriting, getAllResourcePlans, getAllStoredProcedures, getAllTableConstraints, getAllTables, getAllTokenIdentifiers, getAllWriteEventInfo, getCatalog, getCatalogs, getCheckConstraints, getConfigValue, getCurrentNotificationEventId, getDatabase, getDatabase, getDatabases, getDatabases, getDataConnector, getDefaultConstraints, getDelegationToken, getFields, getFields, getFieldsRequest, getFileMetadata, getFileMetadataBySarg, getForeignKeys, getFunction, getFunction, getFunctions, getFunctions, getISchema, getLatestCommittedCompactionInfo, getLatestTxnIdInConflict, getMasterKeys, getMaterializationInvalidationInfo, getMaterializedViewsForRewriting, getMaterializedViewsForRewriting, getMaxAllocatedWriteId, getMetaConf, getMetastoreDbUuid, getNextNotification, getNextNotification, getNotificationEventsCount, getNotNullConstraints, getNumPartitionsByFilter, getOpenTxns, getPartition, getPartition, getPartitionColumnStatistics, getPartitionColumnStatistics, getPartitionColumnStatistics, getPartitionColumnStatistics, getPartitionRequest, getPartitionsByNames, getPartitionsByNames, getPartitionsRequest, getPartitionsWithSpecs, getPartitionWithAuthInfo, getPrimaryKeys, getReplicationMetrics, getResourcePlan, getRuntimeStats, getScheduledQuery, getSchema, getSchemaAllVersions, getSchemaByCols, getSchemaLatestVersion, getSchemaRequest, getSchemaVersion, getSerDe, getServerVersion, getStoredProcedure, getTable, getTable, getTableColumnStatistics, getTableColumnStatistics, getTableColumnStatistics, getTableMeta, getTableObjectsByName, getTables, getTables, getTables, getTablesExt, getToken, getTokenStrForm, getTranslateTableDryrun, getTriggersForResourcePlan, getUniqueConstraints, getValidTxns, getValidTxns, getValidTxns, getValidWriteIds, getValidWriteIds, getValidWriteIds, grant_privileges, grant_role, heartbeat, heartbeatLockMaterializationRebuild, heartbeatTxnRange, insertTable, isCompatibleWith, isLocalMetaStore, isPartitionMarkedForEvent, isPartitionMarkedForEvent, isSameConfObj, list_privileges, list_roles, listPackages, listPartitionNames, listPartitionNames, listPartitions, listPartitions, listPartitionsByExpr, listPartitionsByFilter, listPartitionSpecs, listPartitionSpecsByFilter, listPartitionsWithAuthInfo, listPartitionsWithAuthInfo, listRoleNames, listTableNamesByFilter, listTableNamesByFilter, lock, lockMaterializationRebuild, mapSchemaVersionToSerde, markCleaned, markCompacted, markFailed, markPartitionForEvent, markPartitionForEvent, markRefused, openTxn, openTxn, openTxns, partitionNameToSpec, partitionNameToVals, putFileMetadata, reconnect, recycleDirToCmPath, refresh_privileges, removeCompactionMetricsData, removeMasterKey, removeToken, renamePartition, renamePartition, renewDelegationToken, replAllocateTableWriteIdsBatch, replOpenTxn, replRollbackTxn, replTableWriteIdState, revoke_privileges, revoke_role, rollbackTxn, scheduledQueryMaintenance, scheduledQueryPoll, scheduledQueryProgress, seedTxnId, seedWriteId, setHadoopJobid, setHiveAddedJars, setMetaConf, setSchemaVersionState, showCompactions, showCompactions, showLocks, showLocks, showTxns, submitForCleanup, tableExists, truncateTable, unlock, updateCompactionMetricsData, updateCompactorState, updateCreationMetadata, updateCreationMetadata, updateMasterKey, updatePartitionColumnStatistics, updateTableColumnStatistics, updateTransactionalStatistics, validatePartitionNameCharacters, validateResourcePlanprotected void create_table(org.apache.hadoop.hive.metastore.api.CreateTableRequest request) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.thrift.TException
create_table in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionprotected void drop_table_with_environment_context(String catName, String dbname, String name, boolean deleteData, org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, UnsupportedOperationException
drop_table_with_environment_context in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionUnsupportedOperationExceptionpublic void truncateTable(String dbName, String tableName, List<String> partNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
truncateTable in interface IMetaStoreClienttruncateTable in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void truncateTable(String dbName, String tableName, List<String> partNames, String validWriteIds, long writeId) throws org.apache.thrift.TException
truncateTable in interface IMetaStoreClienttruncateTable in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic void truncateTable(String dbName, String tableName, List<String> partNames, String validWriteIds, long writeId, boolean deleteData) throws org.apache.thrift.TException
truncateTable in interface IMetaStoreClienttruncateTable in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String dbname, String name) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
getTable in interface IMetaStoreClientgetTable in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String dbname, String name, boolean getColStats, String engine) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
getTable in interface IMetaStoreClientgetTable in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String catName, String dbName, String tableName) throws org.apache.thrift.TException
getTable in interface IMetaStoreClientgetTable in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String catName, String dbName, String tableName, boolean getColStats, String engine) throws org.apache.thrift.TException
getTable in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(org.apache.hadoop.hive.metastore.api.GetTableRequest getTableRequest) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
getTable in interface IMetaStoreClientgetTable in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic List<String> getAllTables(String dbName) throws org.apache.hadoop.hive.metastore.api.MetaException
getAllTables in interface IMetaStoreClientgetAllTables in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<String> getTables(String dbName, String tablePattern) throws org.apache.hadoop.hive.metastore.api.MetaException
getTables in interface IMetaStoreClientgetTables in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<String> getTables(String dbname, String tablePattern, TableType tableType) throws org.apache.hadoop.hive.metastore.api.MetaException
getTables in interface IMetaStoreClientgetTables in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<org.apache.hadoop.hive.metastore.api.TableMeta> getTableMeta(String dbPatterns, String tablePatterns, List<String> tableTypes) throws org.apache.hadoop.hive.metastore.api.MetaException
getTableMeta in interface IMetaStoreClientgetTableMeta in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<org.apache.hadoop.hive.metastore.api.Table> getTableObjectsByName(String dbName, List<String> tableNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.UnknownDBException, org.apache.thrift.TException
getTableObjectsByName in interface IMetaStoreClientgetTableObjectsByName in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBExceptionorg.apache.thrift.TExceptionpublic boolean tableExists(String databaseName, String tableName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.UnknownDBException
tableExists in interface IMetaStoreClienttableExists in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBExceptionpublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getSchema(String dbName, String tableName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.UnknownTableException, org.apache.hadoop.hive.metastore.api.UnknownDBException
getSchema in interface IMetaStoreClientgetSchema in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.UnknownTableExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBException@Deprecated public void alter_table(String dbname, String tbl_name, org.apache.hadoop.hive.metastore.api.Table new_tbl, boolean cascade) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
alter_table in interface IMetaStoreClientalter_table in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alter_table(String catName, String dbName, String tbl_name, org.apache.hadoop.hive.metastore.api.Table new_tbl, org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext, String validWriteIds) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
alter_table in interface IMetaStoreClientalter_table in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alter_table(String dbname, String tbl_name, org.apache.hadoop.hive.metastore.api.Table new_tbl) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
alter_table in interface IMetaStoreClientalter_table in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alter_table_with_environmentContext(String dbname, String tbl_name, org.apache.hadoop.hive.metastore.api.Table new_tbl, org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
alter_table_with_environmentContext in interface IMetaStoreClientalter_table_with_environmentContext in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet get_privilege_set(org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject, String userName, List<String> groupNames) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
get_privilege_set in interface IMetaStoreClientget_privilege_set in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean setPartitionColumnStatistics(org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest request) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.InvalidInputException
setPartitionColumnStatistics in interface IMetaStoreClientsetPartitionColumnStatistics in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.InvalidInputExceptionpublic List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> getTableColumnStatistics(String dbName, String tableName, List<String> colNames, String engine) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.InvalidInputException, org.apache.hadoop.hive.metastore.api.InvalidObjectException
getTableColumnStatistics in interface IMetaStoreClientgetTableColumnStatistics in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.InvalidInputExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionpublic boolean deleteTableColumnStatistics(String dbName, String tableName, String colName, String engine) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.InvalidInputException
deleteTableColumnStatistics in interface IMetaStoreClientdeleteTableColumnStatistics in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.InvalidInputExceptionpublic static Map<String,Table> getTempTablesForDatabase(String dbName, String tblName)
dbName - actual database nametblName - actual table name or search pattern (for error message)public org.apache.hadoop.hive.metastore.api.Partition add_partition(org.apache.hadoop.hive.metastore.api.Partition partition) throws org.apache.thrift.TException
add_partition in interface IMetaStoreClientadd_partition in class HiveMetaStoreClientpartition - The partition to addorg.apache.thrift.TExceptionpublic int add_partitions(List<org.apache.hadoop.hive.metastore.api.Partition> partitions) throws org.apache.thrift.TException
add_partitions in interface IMetaStoreClientadd_partitions in class HiveMetaStoreClientpartitions - the new partitions to be added, must be not nullorg.apache.thrift.TExceptionpublic int add_partitions_pspec(org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy partitionSpec) throws org.apache.thrift.TException
add_partitions_pspec in interface IMetaStoreClientadd_partitions_pspec in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> add_partitions(List<org.apache.hadoop.hive.metastore.api.Partition> partitions, boolean ifNotExists, boolean needResults) throws org.apache.thrift.TException
add_partitions in interface IMetaStoreClientadd_partitions in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartition(String catName, String dbName, String tblName, String name) throws org.apache.thrift.TException
getPartition in interface IMetaStoreClientgetPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartition(String catName, String dbName, String tblName, List<String> partVals) throws org.apache.thrift.TException
getPartition in interface IMetaStoreClientgetPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsWithAuthInfo(String catName, String dbName, String tableName, List<String> partialPvals, int maxParts, String userName, List<String> groupNames) throws org.apache.thrift.TException
listPartitionsWithAuthInfo in interface IMetaStoreClientlistPartitionsWithAuthInfo in class HiveMetaStoreClientpartialPvals - partition values, can be partial. This really means that missing values
are represented by empty str.maxParts - maximum number of partitions to fetch, or -1 for allorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsWithAuthInfo(String catName, String dbName, String tableName, int maxParts, String userName, List<String> groupNames) throws org.apache.thrift.TException
listPartitionsWithAuthInfo in interface IMetaStoreClientlistPartitionsWithAuthInfo in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetPartitionsPsWithAuthResponse listPartitionsWithAuthInfoRequest(org.apache.hadoop.hive.metastore.api.GetPartitionsPsWithAuthRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
listPartitionsWithAuthInfoRequest in interface IMetaStoreClientlistPartitionsWithAuthInfoRequest in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic List<String> listPartitionNames(String catName, String dbName, String tblName, int maxParts) throws org.apache.thrift.TException
listPartitionNames in interface IMetaStoreClientlistPartitionNames in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> listPartitionNames(String catName, String dbName, String tblName, List<String> partVals, int maxParts) throws org.apache.thrift.TException
listPartitionNames in interface IMetaStoreClientlistPartitionNames in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetPartitionNamesPsResponse listPartitionNamesRequest(org.apache.hadoop.hive.metastore.api.GetPartitionNamesPsRequest req) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
listPartitionNamesRequest in interface IMetaStoreClientlistPartitionNamesRequest in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<String> listPartitionNames(org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException
listPartitionNames in interface IMetaStoreClientlistPartitionNames in class HiveMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitions(String catName, String dbName, String tblName, int maxParts) throws org.apache.thrift.TException
listPartitions in interface IMetaStoreClientlistPartitions in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitions(String catName, String dbName, String tblName, List<String> partVals, int maxParts) throws org.apache.thrift.TException
listPartitions in interface IMetaStoreClientlistPartitions in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy listPartitionSpecs(String catName, String dbName, String tableName, int maxParts) throws org.apache.thrift.TException
listPartitionSpecs in interface IMetaStoreClientlistPartitionSpecs in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic boolean listPartitionsByExpr(String catName, String dbName, String tblName, byte[] expr, String defaultPartitionName, int maxParts, List<org.apache.hadoop.hive.metastore.api.Partition> result) throws org.apache.thrift.TException
listPartitionsByExpr in interface IMetaStoreClientlistPartitionsByExpr in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic boolean listPartitionsSpecByExpr(org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest req, List<org.apache.hadoop.hive.metastore.api.PartitionSpec> result) throws org.apache.thrift.TException
listPartitionsSpecByExpr in interface IMetaStoreClientlistPartitionsSpecByExpr in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetPartitionsByNamesResult getPartitionsByNames(org.apache.hadoop.hive.metastore.api.GetPartitionsByNamesRequest req) throws org.apache.thrift.TException
getPartitionsByNames in interface IMetaStoreClientgetPartitionsByNames in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartitionWithAuthInfo(String catName, String dbName, String tableName, List<String> pvals, String userName, List<String> groupNames) throws org.apache.thrift.TException
getPartitionWithAuthInfo in interface IMetaStoreClientgetPartitionWithAuthInfo in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String dbName, String tableName, List<String> partVals) throws org.apache.thrift.TException
dropPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String catName, String dbName, String tblName, List<String> partVals, PartitionDropOptions options) throws org.apache.thrift.TException
dropPartition in interface IMetaStoreClientdropPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String catName, String dbName, String tableName, String partitionName, boolean deleteData) throws org.apache.thrift.TException
dropPartition in interface IMetaStoreClientdropPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> dropPartitions(String catName, String dbName, String tblName, List<org.apache.commons.lang3.tuple.Pair<Integer,byte[]>> partExprs, PartitionDropOptions options) throws org.apache.thrift.TException
dropPartitions in interface IMetaStoreClientdropPartitions in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition exchange_partition(Map<String,String> partitionSpecs, String sourceCatName, String sourceDbName, String sourceTableName, String destCatName, String destDbName, String destTableName) throws org.apache.thrift.TException
exchange_partition in interface IMetaStoreClientexchange_partition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> exchange_partitions(Map<String,String> partitionSpecs, String sourceCatName, String sourceDbName, String sourceTableName, String destCatName, String destDbName, String destTableName) throws org.apache.thrift.TException
exchange_partitions in interface IMetaStoreClientexchange_partitions in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_partition(String catName, String dbName, String tblName, org.apache.hadoop.hive.metastore.api.Partition newPart, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) throws org.apache.thrift.TException
alter_partition in interface IMetaStoreClientalter_partition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_partition(String catName, String dbName, String tblName, org.apache.hadoop.hive.metastore.api.Partition newPart, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext, String writeIdList) throws org.apache.thrift.TException
alter_partition in interface IMetaStoreClientalter_partition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_partitions(String catName, String dbName, String tblName, List<org.apache.hadoop.hive.metastore.api.Partition> newParts, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext, String writeIdList, long writeId) throws org.apache.thrift.TException
alter_partitions in interface IMetaStoreClientalter_partitions in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic void renamePartition(String catName, String dbname, String tableName, List<String> partitionVals, org.apache.hadoop.hive.metastore.api.Partition newPart, String validWriteIds, long txnId, boolean makeCopy) throws org.apache.thrift.TException
renamePartition in interface IMetaStoreClientrenamePartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartition(String catName, String dbName, String tableName, List<String> partVals) throws org.apache.thrift.TException
appendPartition in interface IMetaStoreClientappendPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartition(String catName, String dbName, String tableName, String partitionName) throws org.apache.thrift.TException
appendPartition in interface IMetaStoreClientappendPartition in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsByFilter(String catName, String dbName, String tableName, String filter, int maxParts) throws org.apache.thrift.TException
listPartitionsByFilter in interface IMetaStoreClientlistPartitionsByFilter in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic int getNumPartitionsByFilter(String catName, String dbName, String tableName, String filter) throws org.apache.thrift.TException
getNumPartitionsByFilter in interface IMetaStoreClientgetNumPartitionsByFilter in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy listPartitionSpecsByFilter(String catName, String dbName, String tblName, String filter, int maxParts) throws org.apache.thrift.TException
listPartitionSpecsByFilter in interface IMetaStoreClientlistPartitionSpecsByFilter in class HiveMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.PartitionValuesResponse listPartitionValues(org.apache.hadoop.hive.metastore.api.PartitionValuesRequest request) throws org.apache.thrift.TException
listPartitionValues in interface IMetaStoreClientlistPartitionValues in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected String getConfigValueInternal(String name, String defaultValue) throws org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.ConfigValSecurityException
getConfigValueInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.ConfigValSecurityExceptionprotected org.apache.hadoop.hive.metastore.api.Database getDatabaseInternal(org.apache.hadoop.hive.metastore.api.GetDatabaseRequest request) throws org.apache.thrift.TException
getDatabaseInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.GetTableResult getTableInternal(org.apache.hadoop.hive.metastore.api.GetTableRequest req) throws org.apache.thrift.TException
getTableInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.PrimaryKeysResponse getPrimaryKeysInternal(org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest req) throws org.apache.thrift.TException
getPrimaryKeysInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.ForeignKeysResponse getForeignKeysInternal(org.apache.hadoop.hive.metastore.api.ForeignKeysRequest req) throws org.apache.thrift.TException
getForeignKeysInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.UniqueConstraintsResponse getUniqueConstraintsInternal(org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest req) throws org.apache.thrift.TException
getUniqueConstraintsInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.NotNullConstraintsResponse getNotNullConstraintsInternal(org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest req) throws org.apache.thrift.TException
getNotNullConstraintsInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.TableStatsResult getTableColumnStatisticsInternal(org.apache.hadoop.hive.metastore.api.TableStatsRequest rqst) throws org.apache.thrift.TException
getTableColumnStatisticsInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.AggrStats getAggrStatsForInternal(org.apache.hadoop.hive.metastore.api.PartitionsStatsRequest req) throws org.apache.thrift.TException
getAggrStatsForInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.PartitionsByExprResult getPartitionsByExprInternal(org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest req) throws org.apache.thrift.TException
getPartitionsByExprInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.PartitionsSpecByExprResult getPartitionsSpecByExprInternal(org.apache.hadoop.hive.metastore.api.PartitionsByExprRequest req) throws org.apache.thrift.TException
getPartitionsSpecByExprInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected List<String> listPartitionNamesInternal(String catName, String dbName, String tableName, int maxParts) throws org.apache.thrift.TException
listPartitionNamesInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected List<String> listPartitionNamesInternal(String catName, String dbName, String tableName, List<String> partVals, int maxParts) throws org.apache.thrift.TException
listPartitionNamesInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.GetPartitionNamesPsResponse listPartitionNamesRequestInternal(org.apache.hadoop.hive.metastore.api.GetPartitionNamesPsRequest req) throws org.apache.thrift.TException
listPartitionNamesRequestInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsWithAuthInfoInternal(String catName, String dbName, String tableName, int maxParts, String userName, List<String> groupNames) throws org.apache.thrift.TException
listPartitionsWithAuthInfoInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsWithAuthInfoInternal(String catName, String dbName, String tableName, List<String> partialPvals, int maxParts, String userName, List<String> groupNames) throws org.apache.thrift.TException
listPartitionsWithAuthInfoInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.GetPartitionsPsWithAuthResponse listPartitionsWithAuthInfoRequestInternal(org.apache.hadoop.hive.metastore.api.GetPartitionsPsWithAuthRequest req) throws org.apache.thrift.TException
listPartitionsWithAuthInfoRequestInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.GetPartitionsByNamesResult getPartitionsByNamesInternal(org.apache.hadoop.hive.metastore.api.GetPartitionsByNamesRequest rqst) throws org.apache.thrift.TException
getPartitionsByNamesInternal in class HiveMetaStoreClientWithLocalCacheorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.GetValidWriteIdsResponse getValidWriteIdsInternal(org.apache.hadoop.hive.metastore.api.GetValidWriteIdsRequest rqst) throws org.apache.thrift.TException
getValidWriteIdsInternal in class HiveMetaStoreClientorg.apache.thrift.TExceptionprotected String getValidWriteIdList(String dbName, String tblName)
getValidWriteIdList in class HiveMetaStoreClientCopyright © 2022 The Apache Software Foundation. All rights reserved.