@InterfaceAudience.Public @InterfaceStability.Evolving public class HiveMetaStoreClient extends Object implements org.apache.hadoop.hive.metastore.IMetaStoreClient, AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveMetaStoreClient.MetastoreMapIterable<K,V> |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected static org.slf4j.Logger |
LOG |
static org.apache.hadoop.hive.metastore.api.ClientCapabilities |
TEST_VERSION |
static org.apache.hadoop.hive.metastore.api.ClientCapabilities |
VERSION
Capabilities of the current client.
|
| Constructor and Description |
|---|
HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf) |
HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.metastore.HiveMetaHookLoader hookLoader) |
HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.metastore.HiveMetaHookLoader hookLoader,
Boolean allowEmbedded) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTxns(List<Long> txnids) |
org.apache.hadoop.hive.metastore.api.Partition |
add_partition(org.apache.hadoop.hive.metastore.api.Partition new_part) |
org.apache.hadoop.hive.metastore.api.Partition |
add_partition(org.apache.hadoop.hive.metastore.api.Partition new_part,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
int |
add_partitions_pspec(org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy partitionSpec) |
int |
add_partitions(List<org.apache.hadoop.hive.metastore.api.Partition> new_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
add_partitions(List<org.apache.hadoop.hive.metastore.api.Partition> parts,
boolean ifNotExists,
boolean needResults) |
void |
addCheckConstraint(List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints) |
void |
addDefaultConstraint(List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> defaultConstraints) |
void |
addDynamicPartitions(long txnId,
long writeId,
String dbName,
String tableName,
List<String> partNames)
Deprecated.
|
void |
addDynamicPartitions(long txnId,
long writeId,
String dbName,
String tableName,
List<String> partNames,
org.apache.hadoop.hive.metastore.api.DataOperationType operationType) |
void |
addForeignKey(List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> foreignKeyCols) |
int |
addMasterKey(String key) |
void |
addNotNullConstraint(List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> notNullConstraintCols) |
void |
addPrimaryKey(List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> primaryKeyCols) |
void |
addRuntimeStat(org.apache.hadoop.hive.metastore.api.RuntimeStat stat) |
void |
addSchemaVersion(org.apache.hadoop.hive.metastore.api.SchemaVersion schemaVersion) |
void |
addSerDe(org.apache.hadoop.hive.metastore.api.SerDeInfo serDeInfo) |
boolean |
addToken(String tokenIdentifier,
String delegationToken) |
void |
addUniqueConstraint(List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> uniqueConstraintCols) |
long |
allocateTableWriteId(long txnId,
String dbName,
String tableName) |
List<org.apache.hadoop.hive.metastore.api.TxnToWriteId> |
allocateTableWriteIdsBatch(List<Long> txnIds,
String dbName,
String tableName) |
void |
alter_partition(String dbName,
String tblName,
org.apache.hadoop.hive.metastore.api.Partition newPart) |
void |
alter_partition(String dbName,
String tblName,
org.apache.hadoop.hive.metastore.api.Partition newPart,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) |
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) |
void |
alter_partitions(String dbName,
String tblName,
List<org.apache.hadoop.hive.metastore.api.Partition> newParts) |
void |
alter_partitions(String dbName,
String tblName,
List<org.apache.hadoop.hive.metastore.api.Partition> newParts,
org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) |
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) |
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) |
void |
alter_table(String catName,
String dbName,
String tblName,
org.apache.hadoop.hive.metastore.api.Table newTable,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
void |
alter_table(String dbname,
String tbl_name,
org.apache.hadoop.hive.metastore.api.Table new_tbl) |
void |
alter_table(String defaultDatabaseName,
String tblName,
org.apache.hadoop.hive.metastore.api.Table table,
boolean cascade) |
void |
alterCatalog(String catalogName,
org.apache.hadoop.hive.metastore.api.Catalog newCatalog) |
void |
alterDatabase(String dbName,
org.apache.hadoop.hive.metastore.api.Database db) |
void |
alterDatabase(String catName,
String dbName,
org.apache.hadoop.hive.metastore.api.Database newDb) |
void |
alterFunction(String dbName,
String funcName,
org.apache.hadoop.hive.metastore.api.Function newFunction) |
void |
alterFunction(String catName,
String dbName,
String funcName,
org.apache.hadoop.hive.metastore.api.Function newFunction) |
void |
alterISchema(String catName,
String dbName,
String schemaName,
org.apache.hadoop.hive.metastore.api.ISchema newSchema) |
org.apache.hadoop.hive.metastore.api.WMFullResourcePlan |
alterResourcePlan(String resourcePlanName,
org.apache.hadoop.hive.metastore.api.WMNullableResourcePlan resourcePlan,
boolean canActivateDisabled,
boolean isForceDeactivate,
boolean isReplace) |
void |
alterWMPool(org.apache.hadoop.hive.metastore.api.WMNullablePool pool,
String poolPath) |
void |
alterWMTrigger(org.apache.hadoop.hive.metastore.api.WMTrigger trigger) |
org.apache.hadoop.hive.metastore.api.Partition |
appendPartition(String db_name,
String table_name,
List<String> part_vals) |
org.apache.hadoop.hive.metastore.api.Partition |
appendPartition(String dbName,
String tableName,
List<String> partVals,
org.apache.hadoop.hive.metastore.api.EnvironmentContext ec)
Deprecated.
|
org.apache.hadoop.hive.metastore.api.Partition |
appendPartition(String dbName,
String tableName,
String partName) |
org.apache.hadoop.hive.metastore.api.Partition |
appendPartition(String catName,
String dbName,
String tableName,
List<String> partVals) |
org.apache.hadoop.hive.metastore.api.Partition |
appendPartition(String catName,
String dbName,
String tableName,
String name) |
org.apache.hadoop.hive.metastore.api.Partition |
appendPartitionByName(String dbName,
String tableName,
String partName) |
org.apache.hadoop.hive.metastore.api.Partition |
appendPartitionByName(String dbName,
String tableName,
String partName,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
boolean |
cacheFileMetadata(String dbName,
String tableName,
String partName,
boolean allParts) |
void |
cancelDelegationToken(String tokenStrForm) |
org.apache.hadoop.hive.metastore.api.LockResponse |
checkLock(long lockid) |
void |
clearFileMetadata(List<Long> fileIds) |
void |
close() |
void |
commitTxn(long txnid) |
void |
compact(String dbname,
String tableName,
String partitionName,
org.apache.hadoop.hive.metastore.api.CompactionType type)
Deprecated.
|
void |
compact(String dbname,
String tableName,
String partitionName,
org.apache.hadoop.hive.metastore.api.CompactionType type,
Map<String,String> tblproperties)
Deprecated.
|
org.apache.hadoop.hive.metastore.api.CompactionResponse |
compact2(String dbname,
String tableName,
String partitionName,
org.apache.hadoop.hive.metastore.api.CompactionType type,
Map<String,String> tblproperties) |
boolean |
create_role(org.apache.hadoop.hive.metastore.api.Role role) |
protected void |
create_table_with_environment_context(org.apache.hadoop.hive.metastore.api.Table tbl,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
void |
createCatalog(org.apache.hadoop.hive.metastore.api.Catalog catalog) |
void |
createDatabase(org.apache.hadoop.hive.metastore.api.Database db)
Create a new Database
|
void |
createFunction(org.apache.hadoop.hive.metastore.api.Function func) |
void |
createISchema(org.apache.hadoop.hive.metastore.api.ISchema schema) |
void |
createOrDropTriggerToPoolMapping(String resourcePlanName,
String triggerName,
String poolPath,
boolean shouldDrop) |
void |
createOrUpdateWMMapping(org.apache.hadoop.hive.metastore.api.WMMapping mapping,
boolean isUpdate) |
void |
createResourcePlan(org.apache.hadoop.hive.metastore.api.WMResourcePlan resourcePlan,
String copyFromName) |
void |
createTable(org.apache.hadoop.hive.metastore.api.Table tbl) |
void |
createTable(org.apache.hadoop.hive.metastore.api.Table tbl,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
void |
createTableWithConstraints(org.apache.hadoop.hive.metastore.api.Table tbl,
List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> primaryKeys,
List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> foreignKeys,
List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> uniqueConstraints,
List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> notNullConstraints,
List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> defaultConstraints,
List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints) |
boolean |
createType(org.apache.hadoop.hive.metastore.api.Type type) |
void |
createWMPool(org.apache.hadoop.hive.metastore.api.WMPool pool) |
void |
createWMTrigger(org.apache.hadoop.hive.metastore.api.WMTrigger trigger) |
protected org.apache.hadoop.hive.metastore.api.Partition |
deepCopy(org.apache.hadoop.hive.metastore.api.Partition partition) |
protected org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet |
deepCopy(org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet pps) |
protected org.apache.hadoop.hive.metastore.api.Table |
deepCopy(org.apache.hadoop.hive.metastore.api.Table table) |
protected List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
deepCopyFieldSchemas(List<org.apache.hadoop.hive.metastore.api.FieldSchema> schemas) |
boolean |
deletePartitionColumnStatistics(String dbName,
String tableName,
String partName,
String colName) |
boolean |
deletePartitionColumnStatistics(String catName,
String dbName,
String tableName,
String partName,
String colName) |
boolean |
deleteTableColumnStatistics(String dbName,
String tableName,
String colName) |
boolean |
deleteTableColumnStatistics(String catName,
String dbName,
String tableName,
String colName) |
boolean |
drop_role(String roleName) |
protected void |
drop_table_with_environment_context(String catName,
String dbname,
String name,
boolean deleteData,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
void |
dropCatalog(String catName) |
void |
dropConstraint(String dbName,
String tableName,
String constraintName) |
void |
dropConstraint(String catName,
String dbName,
String tableName,
String constraintName) |
void |
dropDatabase(String name) |
void |
dropDatabase(String name,
boolean deleteData,
boolean ignoreUnknownDb) |
void |
dropDatabase(String name,
boolean deleteData,
boolean ignoreUnknownDb,
boolean cascade) |
void |
dropDatabase(String catalogName,
String dbName,
boolean deleteData,
boolean ignoreUnknownDb,
boolean cascade) |
void |
dropFunction(String dbName,
String funcName) |
void |
dropFunction(String catName,
String dbName,
String funcName) |
void |
dropISchema(String catName,
String dbName,
String name) |
boolean |
dropPartition(String dbName,
String tableName,
List<String> partVals)
Deprecated.
|
boolean |
dropPartition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData) |
boolean |
dropPartition(String db_name,
String tbl_name,
List<String> part_vals,
org.apache.hadoop.hive.metastore.api.EnvironmentContext env_context)
Deprecated.
|
boolean |
dropPartition(String db_name,
String tbl_name,
List<String> part_vals,
org.apache.hadoop.hive.metastore.PartitionDropOptions options) |
boolean |
dropPartition(String dbName,
String tableName,
String partName,
boolean deleteData) |
boolean |
dropPartition(String dbName,
String tableName,
String partName,
boolean dropData,
org.apache.hadoop.hive.metastore.api.EnvironmentContext ec)
Deprecated.
|
boolean |
dropPartition(String catName,
String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData) |
boolean |
dropPartition(String catName,
String db_name,
String tbl_name,
List<String> part_vals,
org.apache.hadoop.hive.metastore.PartitionDropOptions options) |
boolean |
dropPartition(String catName,
String db_name,
String tbl_name,
String name,
boolean deleteData) |
boolean |
dropPartitionByName(String dbName,
String tableName,
String partName,
boolean deleteData) |
boolean |
dropPartitionByName(String dbName,
String tableName,
String partName,
boolean deleteData,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
dropPartitions(String dbName,
String tblName,
List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs,
boolean deleteData,
boolean ifExists) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
dropPartitions(String dbName,
String tblName,
List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs,
boolean deleteData,
boolean ifExists,
boolean needResult) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
dropPartitions(String dbName,
String tblName,
List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs,
org.apache.hadoop.hive.metastore.PartitionDropOptions options) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
dropPartitions(String catName,
String dbName,
String tblName,
List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs,
org.apache.hadoop.hive.metastore.PartitionDropOptions options) |
void |
dropResourcePlan(String resourcePlanName) |
void |
dropSchemaVersion(String catName,
String dbName,
String schemaName,
int version) |
void |
dropTable(String dbname,
String name) |
void |
dropTable(String dbname,
String name,
boolean deleteData,
boolean ignoreUnknownTab) |
void |
dropTable(String dbname,
String name,
boolean deleteData,
boolean ignoreUnknownTab,
boolean ifPurge) |
void |
dropTable(String catName,
String dbName,
String tableName,
boolean deleteData,
boolean ignoreUnknownTable,
boolean ifPurge) |
void |
dropTable(String catName,
String dbname,
String name,
boolean deleteData,
boolean ignoreUnknownTab,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
Drop the table and choose whether to: delete the underlying table data;
throw if the table doesn't exist; save the data in the trash.
|
boolean |
dropType(String type) |
void |
dropWMMapping(org.apache.hadoop.hive.metastore.api.WMMapping mapping) |
void |
dropWMPool(String resourcePlanName,
String poolPath) |
void |
dropWMTrigger(String resourcePlanName,
String triggerName) |
org.apache.hadoop.hive.metastore.api.Partition |
exchange_partition(Map<String,String> partitionSpecs,
String sourceDb,
String sourceTable,
String destDb,
String destinationTableName)
Exchange the partition between two tables
|
org.apache.hadoop.hive.metastore.api.Partition |
exchange_partition(Map<String,String> partitionSpecs,
String sourceCat,
String sourceDb,
String sourceTable,
String destCat,
String destDb,
String destTableName) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
exchange_partitions(Map<String,String> partitionSpecs,
String sourceDb,
String sourceTable,
String destDb,
String destinationTableName)
Exchange the partitions between two tables
|
List<org.apache.hadoop.hive.metastore.api.Partition> |
exchange_partitions(Map<String,String> partitionSpecs,
String sourceCat,
String sourceDb,
String sourceTable,
String destCat,
String destDb,
String destTableName) |
org.apache.hadoop.hive.metastore.api.FireEventResponse |
fireListenerEvent(org.apache.hadoop.hive.metastore.api.FireEventRequest rqst) |
void |
flushCache() |
org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse |
get_principals_in_role(org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest req) |
org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet |
get_privilege_set(org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject,
String userName,
List<String> groupNames) |
org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse |
get_role_grants_for_principal(org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest getRolePrincReq) |
org.apache.hadoop.hive.metastore.api.WMFullResourcePlan |
getActiveResourcePlan() |
org.apache.hadoop.hive.metastore.api.AggrStats |
getAggrColStatsFor(String dbName,
String tblName,
List<String> colNames,
List<String> partNames) |
org.apache.hadoop.hive.metastore.api.AggrStats |
getAggrColStatsFor(String catName,
String dbName,
String tblName,
List<String> colNames,
List<String> partNames) |
List<String> |
getAllDatabases() |
List<String> |
getAllDatabases(String catName) |
org.apache.hadoop.hive.metastore.api.GetAllFunctionsResponse |
getAllFunctions() |
List<org.apache.hadoop.hive.metastore.api.WMResourcePlan> |
getAllResourcePlans() |
List<String> |
getAllTables(String dbname) |
List<String> |
getAllTables(String catName,
String dbName) |
List<String> |
getAllTokenIdentifiers() |
org.apache.hadoop.hive.metastore.api.Catalog |
getCatalog(String catName) |
List<String> |
getCatalogs() |
List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> |
getCheckConstraints(org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest req) |
String |
getConfigValue(String name,
String defaultValue) |
org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId |
getCurrentNotificationEventId() |
org.apache.hadoop.hive.metastore.api.Database |
getDatabase(String name) |
org.apache.hadoop.hive.metastore.api.Database |
getDatabase(String catalogName,
String databaseName) |
List<String> |
getDatabases(String databasePattern) |
List<String> |
getDatabases(String catName,
String databasePattern) |
List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> |
getDefaultConstraints(org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest req) |
String |
getDelegationToken(String renewerKerberosPrincipalName) |
String |
getDelegationToken(String owner,
String renewerKerberosPrincipalName) |
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getFields(String db,
String tableName) |
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getFields(String catName,
String db,
String tableName) |
Iterable<Map.Entry<Long,ByteBuffer>> |
getFileMetadata(List<Long> fileIds) |
Iterable<Map.Entry<Long,org.apache.hadoop.hive.metastore.api.MetadataPpdResult>> |
getFileMetadataBySarg(List<Long> fileIds,
ByteBuffer sarg,
boolean doGetFooters) |
List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> |
getForeignKeys(org.apache.hadoop.hive.metastore.api.ForeignKeysRequest req) |
org.apache.hadoop.hive.metastore.api.Function |
getFunction(String dbName,
String funcName) |
org.apache.hadoop.hive.metastore.api.Function |
getFunction(String catName,
String dbName,
String funcName) |
List<String> |
getFunctions(String dbName,
String pattern) |
List<String> |
getFunctions(String catName,
String dbName,
String pattern) |
org.apache.hadoop.hive.metastore.api.ISchema |
getISchema(String catName,
String dbName,
String name) |
String[] |
getMasterKeys() |
org.apache.hadoop.hive.metastore.api.Materialization |
getMaterializationInvalidationInfo(org.apache.hadoop.hive.metastore.api.CreationMetadata cm,
String validTxnList) |
List<String> |
getMaterializedViewsForRewriting(String dbName) |
List<String> |
getMaterializedViewsForRewriting(String catName,
String dbname) |
String |
getMetaConf(String key) |
String |
getMetastoreDbUuid() |
org.apache.hadoop.hive.metastore.api.NotificationEventResponse |
getNextNotification(long lastEventId,
int maxEvents,
org.apache.hadoop.hive.metastore.IMetaStoreClient.NotificationFilter filter) |
org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse |
getNotificationEventsCount(org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest rqst) |
List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> |
getNotNullConstraints(org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest req) |
int |
getNumPartitionsByFilter(String db_name,
String tbl_name,
String filter) |
int |
getNumPartitionsByFilter(String catName,
String dbName,
String tableName,
String filter) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartition(String db_name,
String tbl_name,
List<String> part_vals) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartition(String db,
String tableName,
String partName) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartition(String catName,
String dbName,
String tblName,
List<String> partVals) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartition(String catName,
String dbName,
String tblName,
String name) |
Map<String,List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj>> |
getPartitionColumnStatistics(String dbName,
String tableName,
List<String> partNames,
List<String> colNames) |
Map<String,List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj>> |
getPartitionColumnStatistics(String catName,
String dbName,
String tableName,
List<String> partNames,
List<String> colNames) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
getPartitionsByNames(String db_name,
String tbl_name,
List<String> part_names) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
getPartitionsByNames(String catName,
String db_name,
String tbl_name,
List<String> part_names) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartitionWithAuthInfo(String db_name,
String tbl_name,
List<String> part_vals,
String user_name,
List<String> group_names) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartitionWithAuthInfo(String catName,
String dbName,
String tableName,
List<String> pvals,
String userName,
List<String> groupNames) |
List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> |
getPrimaryKeys(org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest req) |
org.apache.hadoop.hive.metastore.api.WMFullResourcePlan |
getResourcePlan(String resourcePlanName) |
List<org.apache.hadoop.hive.metastore.api.RuntimeStat> |
getRuntimeStats(int maxWeight,
int maxCreateTime) |
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getSchema(String db,
String tableName) |
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getSchema(String catName,
String db,
String tableName) |
List<org.apache.hadoop.hive.metastore.api.SchemaVersion> |
getSchemaAllVersions(String catName,
String dbName,
String schemaName) |
org.apache.hadoop.hive.metastore.api.FindSchemasByColsResp |
getSchemaByCols(org.apache.hadoop.hive.metastore.api.FindSchemasByColsRqst rqst) |
org.apache.hadoop.hive.metastore.api.SchemaVersion |
getSchemaLatestVersion(String catName,
String dbName,
String schemaName) |
org.apache.hadoop.hive.metastore.api.SchemaVersion |
getSchemaVersion(String catName,
String dbName,
String schemaName,
int version) |
org.apache.hadoop.hive.metastore.api.SerDeInfo |
getSerDe(String serDeName) |
org.apache.hadoop.hive.metastore.api.Table |
getTable(String dbname,
String name) |
org.apache.hadoop.hive.metastore.api.Table |
getTable(String catName,
String dbName,
String tableName) |
List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> |
getTableColumnStatistics(String dbName,
String tableName,
List<String> colNames) |
List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> |
getTableColumnStatistics(String catName,
String dbName,
String tableName,
List<String> colNames) |
List<org.apache.hadoop.hive.metastore.api.TableMeta> |
getTableMeta(String dbPatterns,
String tablePatterns,
List<String> tableTypes) |
List<org.apache.hadoop.hive.metastore.api.TableMeta> |
getTableMeta(String catName,
String dbPatterns,
String tablePatterns,
List<String> tableTypes) |
List<org.apache.hadoop.hive.metastore.api.Table> |
getTableObjectsByName(String dbName,
List<String> tableNames) |
List<org.apache.hadoop.hive.metastore.api.Table> |
getTableObjectsByName(String catName,
String dbName,
List<String> tableNames) |
List<String> |
getTables(String dbname,
String tablePattern) |
List<String> |
getTables(String catName,
String dbName,
String tablePattern) |
List<String> |
getTables(String catName,
String dbName,
String tablePattern,
org.apache.hadoop.hive.metastore.TableType tableType) |
List<String> |
getTables(String dbname,
String tablePattern,
org.apache.hadoop.hive.metastore.TableType tableType) |
String |
getToken(String tokenIdentifier) |
String |
getTokenStrForm() |
List<org.apache.hadoop.hive.metastore.api.WMTrigger> |
getTriggersForResourcePlan(String resourcePlan) |
org.apache.thrift.transport.TTransport |
getTTransport() |
org.apache.hadoop.hive.metastore.api.Type |
getType(String name) |
Map<String,org.apache.hadoop.hive.metastore.api.Type> |
getTypeAll(String name) |
List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> |
getUniqueConstraints(org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest req) |
org.apache.hadoop.hive.common.ValidTxnList |
getValidTxns() |
org.apache.hadoop.hive.common.ValidTxnList |
getValidTxns(long currentTxn) |
List<org.apache.hadoop.hive.metastore.api.TableValidWriteIds> |
getValidWriteIds(List<String> tablesList,
String validTxnList) |
org.apache.hadoop.hive.common.ValidWriteIdList |
getValidWriteIds(String fullTableName) |
boolean |
grant_privileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privileges) |
boolean |
grant_role(String roleName,
String userName,
org.apache.hadoop.hive.metastore.api.PrincipalType principalType,
String grantor,
org.apache.hadoop.hive.metastore.api.PrincipalType grantorType,
boolean grantOption) |
void |
heartbeat(long txnid,
long lockid) |
boolean |
heartbeatLockMaterializationRebuild(String dbName,
String tableName,
long txnId) |
org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse |
heartbeatTxnRange(long min,
long max) |
void |
insertTable(org.apache.hadoop.hive.metastore.api.Table table,
boolean overwrite) |
boolean |
isCompatibleWith(org.apache.hadoop.conf.Configuration conf) |
boolean |
isLocalMetaStore() |
boolean |
isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> partKVs,
org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) |
boolean |
isPartitionMarkedForEvent(String catName,
String db_name,
String tbl_name,
Map<String,String> partKVs,
org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) |
boolean |
isSameConfObj(org.apache.hadoop.conf.Configuration c) |
List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> |
list_privileges(String principalName,
org.apache.hadoop.hive.metastore.api.PrincipalType principalType,
org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject) |
List<org.apache.hadoop.hive.metastore.api.Role> |
list_roles(String principalName,
org.apache.hadoop.hive.metastore.api.PrincipalType principalType) |
List<String> |
listPartitionNames(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts) |
List<String> |
listPartitionNames(String dbName,
String tblName,
short max) |
List<String> |
listPartitionNames(String catName,
String dbName,
String tableName,
int maxParts) |
List<String> |
listPartitionNames(String catName,
String db_name,
String tbl_name,
List<String> part_vals,
int max_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitions(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitions(String db_name,
String tbl_name,
short max_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitions(String catName,
String db_name,
String tbl_name,
int max_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitions(String catName,
String db_name,
String tbl_name,
List<String> part_vals,
int max_parts) |
boolean |
listPartitionsByExpr(String db_name,
String tbl_name,
byte[] expr,
String default_partition_name,
short max_parts,
List<org.apache.hadoop.hive.metastore.api.Partition> result) |
boolean |
listPartitionsByExpr(String catName,
String db_name,
String tbl_name,
byte[] expr,
String default_partition_name,
int max_parts,
List<org.apache.hadoop.hive.metastore.api.Partition> result) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitionsByFilter(String db_name,
String tbl_name,
String filter,
short max_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitionsByFilter(String catName,
String db_name,
String tbl_name,
String filter,
int max_parts) |
org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy |
listPartitionSpecs(String dbName,
String tableName,
int maxParts) |
org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy |
listPartitionSpecs(String catName,
String dbName,
String tableName,
int maxParts) |
org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy |
listPartitionSpecsByFilter(String db_name,
String tbl_name,
String filter,
int max_parts) |
org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy |
listPartitionSpecsByFilter(String catName,
String db_name,
String tbl_name,
String filter,
int max_parts) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitionsWithAuthInfo(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String user_name,
List<String> group_names) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitionsWithAuthInfo(String db_name,
String tbl_name,
short max_parts,
String user_name,
List<String> group_names) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
listPartitionsWithAuthInfo(String catName,
String dbName,
String tableName,
int maxParts,
String userName,
List<String> groupNames) |
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) |
org.apache.hadoop.hive.metastore.api.PartitionValuesResponse |
listPartitionValues(org.apache.hadoop.hive.metastore.api.PartitionValuesRequest request) |
List<String> |
listRoleNames() |
List<String> |
listTableNamesByFilter(String dbName,
String filter,
short maxTables) |
List<String> |
listTableNamesByFilter(String catName,
String dbName,
String filter,
int maxTables) |
org.apache.hadoop.hive.metastore.api.LockResponse |
lock(org.apache.hadoop.hive.metastore.api.LockRequest request) |
org.apache.hadoop.hive.metastore.api.LockResponse |
lockMaterializationRebuild(String dbName,
String tableName,
long txnId) |
void |
mapSchemaVersionToSerde(String catName,
String dbName,
String schemaName,
int version,
String serdeName) |
void |
markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> partKVs,
org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) |
void |
markPartitionForEvent(String catName,
String db_name,
String tbl_name,
Map<String,String> partKVs,
org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) |
static org.apache.hadoop.hive.metastore.IMetaStoreClient |
newSynchronizedClient(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
Creates a synchronized wrapper for any
IMetaStoreClient. |
long |
openTxn(String user) |
org.apache.hadoop.hive.metastore.api.OpenTxnsResponse |
openTxns(String user,
int numTxns) |
Map<String,String> |
partitionNameToSpec(String name) |
List<String> |
partitionNameToVals(String name) |
void |
putFileMetadata(List<Long> fileIds,
List<ByteBuffer> metadata) |
void |
reconnect() |
org.apache.hadoop.hive.metastore.api.CmRecycleResponse |
recycleDirToCmPath(org.apache.hadoop.hive.metastore.api.CmRecycleRequest request)
Recycles the files recursively from the input path to the cmroot directory either by copying or moving it.
|
boolean |
refresh_privileges(org.apache.hadoop.hive.metastore.api.HiveObjectRef objToRefresh,
String authorizer,
org.apache.hadoop.hive.metastore.api.PrivilegeBag grantPrivileges) |
boolean |
removeMasterKey(Integer keySeq) |
boolean |
removeToken(String tokenIdentifier) |
void |
renamePartition(String dbname,
String tableName,
List<String> part_vals,
org.apache.hadoop.hive.metastore.api.Partition newPart) |
void |
renamePartition(String catName,
String dbname,
String tableName,
List<String> part_vals,
org.apache.hadoop.hive.metastore.api.Partition newPart) |
long |
renewDelegationToken(String tokenStrForm) |
List<org.apache.hadoop.hive.metastore.api.TxnToWriteId> |
replAllocateTableWriteIdsBatch(String dbName,
String tableName,
String replPolicy,
List<org.apache.hadoop.hive.metastore.api.TxnToWriteId> srcTxnToWriteIdList) |
void |
replCommitTxn(long srcTxnId,
String replPolicy) |
List<Long> |
replOpenTxn(String replPolicy,
List<Long> srcTxnIds,
String user) |
void |
replRollbackTxn(long srcTxnId,
String replPolicy) |
void |
replTableWriteIdState(String validWriteIdList,
String dbName,
String tableName,
List<String> partNames) |
boolean |
revoke_privileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privileges,
boolean grantOption) |
boolean |
revoke_role(String roleName,
String userName,
org.apache.hadoop.hive.metastore.api.PrincipalType principalType,
boolean grantOption) |
void |
rollbackTxn(long txnid) |
void |
setHiveAddedJars(String addedJars) |
void |
setMetaConf(String key,
String value) |
boolean |
setPartitionColumnStatistics(org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest request) |
void |
setSchemaVersionState(String catName,
String dbName,
String schemaName,
int version,
org.apache.hadoop.hive.metastore.api.SchemaVersionState state) |
org.apache.hadoop.hive.metastore.api.ShowCompactResponse |
showCompactions() |
org.apache.hadoop.hive.metastore.api.ShowLocksResponse |
showLocks()
Deprecated.
|
org.apache.hadoop.hive.metastore.api.ShowLocksResponse |
showLocks(org.apache.hadoop.hive.metastore.api.ShowLocksRequest request) |
org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse |
showTxns() |
boolean |
tableExists(String databaseName,
String tableName) |
boolean |
tableExists(String catName,
String dbName,
String tableName) |
void |
truncateTable(String dbName,
String tableName,
List<String> partNames) |
void |
truncateTable(String catName,
String dbName,
String tableName,
List<String> partNames) |
void |
unlock(long lockid) |
void |
updateCreationMetadata(String dbName,
String tableName,
org.apache.hadoop.hive.metastore.api.CreationMetadata cm) |
void |
updateCreationMetadata(String catName,
String dbName,
String tableName,
org.apache.hadoop.hive.metastore.api.CreationMetadata cm) |
void |
updateMasterKey(Integer seqNo,
String key) |
boolean |
updatePartitionColumnStatistics(org.apache.hadoop.hive.metastore.api.ColumnStatistics statsObj) |
boolean |
updateTableColumnStatistics(org.apache.hadoop.hive.metastore.api.ColumnStatistics statsObj) |
void |
validatePartitionNameCharacters(List<String> partVals) |
org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse |
validateResourcePlan(String resourcePlanName) |
public static final org.apache.hadoop.hive.metastore.api.ClientCapabilities VERSION
public static final org.apache.hadoop.hive.metastore.api.ClientCapabilities TEST_VERSION
protected final org.apache.hadoop.conf.Configuration conf
protected static final org.slf4j.Logger LOG
public HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf)
throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionpublic HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.metastore.HiveMetaHookLoader hookLoader)
throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionpublic HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hive.metastore.HiveMetaHookLoader hookLoader,
Boolean allowEmbedded)
throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionpublic org.apache.thrift.transport.TTransport getTTransport()
public boolean isLocalMetaStore()
isLocalMetaStore in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpublic boolean isCompatibleWith(org.apache.hadoop.conf.Configuration conf)
isCompatibleWith in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpublic void setHiveAddedJars(String addedJars)
setHiveAddedJars in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpublic void reconnect()
throws org.apache.hadoop.hive.metastore.api.MetaException
reconnect in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void alter_table(String dbname, String tbl_name, org.apache.hadoop.hive.metastore.api.Table new_tbl) throws org.apache.thrift.TException
alter_table in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_table(String defaultDatabaseName, String tblName, org.apache.hadoop.hive.metastore.api.Table table, boolean cascade) throws org.apache.thrift.TException
alter_table in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alter_table(String catName, String dbName, String tblName, org.apache.hadoop.hive.metastore.api.Table newTable, org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) throws org.apache.thrift.TException
alter_table in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void renamePartition(String dbname, String tableName, List<String> part_vals, org.apache.hadoop.hive.metastore.api.Partition newPart) throws org.apache.thrift.TException
renamePartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void renamePartition(String catName, String dbname, String tableName, List<String> part_vals, org.apache.hadoop.hive.metastore.api.Partition newPart) throws org.apache.thrift.TException
renamePartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic String getTokenStrForm() throws IOException
getTokenStrForm in interface org.apache.hadoop.hive.metastore.IMetaStoreClientIOExceptionpublic void close()
close in interface AutoCloseableclose in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpublic void setMetaConf(String key, String value) throws org.apache.thrift.TException
setMetaConf in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic String getMetaConf(String key) throws org.apache.thrift.TException
getMetaConf in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void createCatalog(org.apache.hadoop.hive.metastore.api.Catalog catalog)
throws org.apache.thrift.TException
createCatalog in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alterCatalog(String catalogName, org.apache.hadoop.hive.metastore.api.Catalog newCatalog) throws org.apache.thrift.TException
alterCatalog in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Catalog getCatalog(String catName) throws org.apache.thrift.TException
getCatalog in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getCatalogs() throws org.apache.thrift.TException
getCatalogs in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropCatalog(String catName) throws org.apache.thrift.TException
dropCatalog in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition add_partition(org.apache.hadoop.hive.metastore.api.Partition new_part)
throws org.apache.thrift.TException
add_partition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientnew_part - org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionThriftHiveMetastore.Iface.add_partition(org.apache.hadoop.hive.metastore.api.Partition)public org.apache.hadoop.hive.metastore.api.Partition add_partition(org.apache.hadoop.hive.metastore.api.Partition new_part,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic int add_partitions(List<org.apache.hadoop.hive.metastore.api.Partition> new_parts) throws org.apache.thrift.TException
add_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientnew_parts - org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionThriftHiveMetastore.Iface.add_partitions(List)public List<org.apache.hadoop.hive.metastore.api.Partition> add_partitions(List<org.apache.hadoop.hive.metastore.api.Partition> parts, boolean ifNotExists, boolean needResults) throws org.apache.thrift.TException
add_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartition(String db_name, String table_name, List<String> part_vals) throws org.apache.thrift.TException
appendPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartition(String dbName, String tableName, String partName) throws org.apache.thrift.TException
appendPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartition(String catName, String dbName, String tableName, String name) throws org.apache.thrift.TException
appendPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@Deprecated public org.apache.hadoop.hive.metastore.api.Partition appendPartition(String dbName, String tableName, List<String> partVals, org.apache.hadoop.hive.metastore.api.EnvironmentContext ec) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition exchange_partition(Map<String,String> partitionSpecs, String sourceDb, String sourceTable, String destDb, String destinationTableName) throws org.apache.thrift.TException
exchange_partition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpartitionSpecs - partitions specs of the parent partition to be exchangeddestDb - the db of the destination tabledestinationTableName - the destination table nameorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition exchange_partition(Map<String,String> partitionSpecs, String sourceCat, String sourceDb, String sourceTable, String destCat, String destDb, String destTableName) throws org.apache.thrift.TException
exchange_partition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> exchange_partitions(Map<String,String> partitionSpecs, String sourceDb, String sourceTable, String destDb, String destinationTableName) throws org.apache.thrift.TException
exchange_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpartitionSpecs - partitions specs of the parent partition to be exchangeddestDb - the db of the destination tabledestinationTableName - the destination table nameorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> exchange_partitions(Map<String,String> partitionSpecs, String sourceCat, String sourceDb, String sourceTable, String destCat, String destDb, String destTableName) throws org.apache.thrift.TException
exchange_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void validatePartitionNameCharacters(List<String> partVals) throws org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.MetaException
validatePartitionNameCharacters in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic void createDatabase(org.apache.hadoop.hive.metastore.api.Database db)
throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
org.apache.hadoop.hive.metastore.api.InvalidObjectException,
org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
createDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientdb - org.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionThriftHiveMetastore.Iface.create_database(Database)public void createTable(org.apache.hadoop.hive.metastore.api.Table tbl)
throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
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
createTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClienttbl - org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionThriftHiveMetastore.Iface.create_table(org.apache.hadoop.hive.metastore.api.Table)public void createTable(org.apache.hadoop.hive.metastore.api.Table tbl,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
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
org.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic void createTableWithConstraints(org.apache.hadoop.hive.metastore.api.Table tbl,
List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> primaryKeys,
List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> foreignKeys,
List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> uniqueConstraints,
List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> notNullConstraints,
List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> defaultConstraints,
List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints)
throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
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
createTableWithConstraints in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic void dropConstraint(String dbName, String tableName, String constraintName) throws org.apache.thrift.TException
dropConstraint in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropConstraint(String catName, String dbName, String tableName, String constraintName) throws org.apache.thrift.TException
dropConstraint in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addPrimaryKey(List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> primaryKeyCols) throws org.apache.thrift.TException
addPrimaryKey in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addForeignKey(List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> foreignKeyCols) throws org.apache.thrift.TException
addForeignKey in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addUniqueConstraint(List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> uniqueConstraintCols) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
addUniqueConstraint in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void addNotNullConstraint(List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> notNullConstraintCols) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
addNotNullConstraint in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void addDefaultConstraint(List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> defaultConstraints) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
addDefaultConstraint in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void addCheckConstraint(List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> checkConstraints) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
addCheckConstraint in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean createType(org.apache.hadoop.hive.metastore.api.Type type)
throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
org.apache.hadoop.hive.metastore.api.InvalidObjectException,
org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
type - org.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionThriftHiveMetastore.Iface.create_type(org.apache.hadoop.hive.metastore.api.Type)public void dropDatabase(String name) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientname - org.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionThriftHiveMetastore.Iface.drop_database(java.lang.String, boolean, boolean)public void dropDatabase(String name, boolean deleteData, boolean ignoreUnknownDb) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void dropDatabase(String name, boolean deleteData, boolean ignoreUnknownDb, boolean cascade) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void dropDatabase(String catalogName, String dbName, boolean deleteData, boolean ignoreUnknownDb, boolean cascade) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean dropPartition(String dbName, String tableName, String partName, boolean deleteData) throws org.apache.thrift.TException
dropPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String catName, String db_name, String tbl_name, String name, boolean deleteData) throws org.apache.thrift.TException
dropPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@Deprecated public boolean dropPartition(String db_name, String tbl_name, List<String> part_vals, org.apache.hadoop.hive.metastore.api.EnvironmentContext env_context) throws org.apache.thrift.TException
org.apache.thrift.TException@Deprecated public boolean dropPartition(String dbName, String tableName, String partName, boolean dropData, org.apache.hadoop.hive.metastore.api.EnvironmentContext ec) throws org.apache.thrift.TException
org.apache.thrift.TException@Deprecated public boolean dropPartition(String dbName, String tableName, List<String> partVals) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean dropPartition(String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws org.apache.thrift.TException
dropPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String catName, String db_name, String tbl_name, List<String> part_vals, boolean deleteData) throws org.apache.thrift.TException
dropPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String db_name, String tbl_name, List<String> part_vals, org.apache.hadoop.hive.metastore.PartitionDropOptions options) throws org.apache.thrift.TException
dropPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String catName, String db_name, String tbl_name, List<String> part_vals, org.apache.hadoop.hive.metastore.PartitionDropOptions options) throws org.apache.thrift.TException
dropPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> dropPartitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs, org.apache.hadoop.hive.metastore.PartitionDropOptions options) throws org.apache.thrift.TException
dropPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> dropPartitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs, boolean deleteData, boolean ifExists, boolean needResult) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> dropPartitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs, boolean deleteData, boolean ifExists) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> dropPartitions(String catName, String dbName, String tblName, List<org.apache.hadoop.hive.metastore.utils.ObjectPair<Integer,byte[]>> partExprs, org.apache.hadoop.hive.metastore.PartitionDropOptions options) throws org.apache.thrift.TException
dropPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropTable(String dbname, String name, boolean deleteData, boolean ignoreUnknownTab) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, UnsupportedOperationException
dropTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionUnsupportedOperationExceptionpublic void dropTable(String dbname, String name, boolean deleteData, boolean ignoreUnknownTab, boolean ifPurge) throws org.apache.thrift.TException
dropTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropTable(String dbname, String name) throws org.apache.thrift.TException
dropTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropTable(String catName, String dbName, String tableName, boolean deleteData, boolean ignoreUnknownTable, boolean ifPurge) throws org.apache.thrift.TException
dropTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropTable(String catName, String dbname, String name, boolean deleteData, boolean ignoreUnknownTab, 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
catName - catalog namedbname - database namename - table namedeleteData - delete the underlying data or just delete the table in metadataignoreUnknownTab - don't throw if the requested table doesn't existenvContext - for communicating with thriftorg.apache.hadoop.hive.metastore.api.MetaException - could not drop table properlyorg.apache.hadoop.hive.metastore.api.NoSuchObjectException - the table wasn't foundorg.apache.thrift.TException - a thrift communication error occurredUnsupportedOperationException - dropping an index table is not allowedThriftHiveMetastore.Iface.drop_table(java.lang.String,
java.lang.String, boolean)public void truncateTable(String dbName, String tableName, List<String> partNames) throws org.apache.thrift.TException
truncateTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void truncateTable(String catName, String dbName, String tableName, List<String> partNames) throws org.apache.thrift.TException
truncateTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.CmRecycleResponse recycleDirToCmPath(org.apache.hadoop.hive.metastore.api.CmRecycleRequest request)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
recycleDirToCmPath in interface org.apache.hadoop.hive.metastore.IMetaStoreClientrequest - Inputs for path of the data files to be recycled to cmroot and
isPurge flag when set to true files which needs to be recycled are not moved to Trashorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean dropType(String type) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
type - org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionThriftHiveMetastore.Iface.drop_type(java.lang.String)public Map<String,org.apache.hadoop.hive.metastore.api.Type> getTypeAll(String name) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
name - org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionThriftHiveMetastore.Iface.get_type_all(java.lang.String)public List<String> getDatabases(String databasePattern) throws org.apache.thrift.TException
getDatabases in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getDatabases(String catName, String databasePattern) throws org.apache.thrift.TException
getDatabases in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getAllDatabases() throws org.apache.thrift.TException
getAllDatabases in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getAllDatabases(String catName) throws org.apache.thrift.TException
getAllDatabases in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitions(String db_name, String tbl_name, short max_parts) throws org.apache.thrift.TException
listPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitions(String catName, String db_name, String tbl_name, int max_parts) throws org.apache.thrift.TException
listPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, int maxParts) throws org.apache.thrift.TException
listPartitionSpecs in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitions(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws org.apache.thrift.TException
listPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitions(String catName, String db_name, String tbl_name, List<String> part_vals, int max_parts) throws org.apache.thrift.TException
listPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsWithAuthInfo(String db_name, String tbl_name, short max_parts, String user_name, List<String> group_names) throws org.apache.thrift.TException
listPartitionsWithAuthInfo in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsWithAuthInfo(String db_name, String tbl_name, List<String> part_vals, short max_parts, String user_name, List<String> group_names) throws org.apache.thrift.TException
listPartitionsWithAuthInfo in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsByFilter(String db_name, String tbl_name, String filter, short max_parts) throws org.apache.thrift.TException
listPartitionsByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> listPartitionsByFilter(String catName, String db_name, String tbl_name, String filter, int max_parts) throws org.apache.thrift.TException
listPartitionsByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy listPartitionSpecsByFilter(String db_name, String tbl_name, String filter, int max_parts) throws org.apache.thrift.TException
listPartitionSpecsByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy listPartitionSpecsByFilter(String catName, String db_name, String tbl_name, String filter, int max_parts) throws org.apache.thrift.TException
listPartitionSpecsByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean listPartitionsByExpr(String db_name, String tbl_name, byte[] expr, String default_partition_name, short max_parts, List<org.apache.hadoop.hive.metastore.api.Partition> result) throws org.apache.thrift.TException
listPartitionsByExpr in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean listPartitionsByExpr(String catName, String db_name, String tbl_name, byte[] expr, String default_partition_name, int max_parts, List<org.apache.hadoop.hive.metastore.api.Partition> result) throws org.apache.thrift.TException
listPartitionsByExpr in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Database getDatabase(String name) throws org.apache.thrift.TException
getDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Database getDatabase(String catalogName, String databaseName) throws org.apache.thrift.TException
getDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartition(String db_name, String tbl_name, List<String> part_vals) throws org.apache.thrift.TException
getPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByNames(String db_name, String tbl_name, List<String> part_names) throws org.apache.thrift.TException
getPartitionsByNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByNames(String catName, String db_name, String tbl_name, List<String> part_names) throws org.apache.thrift.TException
getPartitionsByNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.PartitionValuesResponse listPartitionValues(org.apache.hadoop.hive.metastore.api.PartitionValuesRequest request)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException,
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
listPartitionValues in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartitionWithAuthInfo(String db_name, String tbl_name, List<String> part_vals, String user_name, List<String> group_names) throws org.apache.thrift.TException
getPartitionWithAuthInfo in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String dbname, String name) throws org.apache.thrift.TException
getTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String catName, String dbName, String tableName) throws org.apache.thrift.TException
getTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Table> getTableObjectsByName(String dbName, List<String> tableNames) throws org.apache.thrift.TException
getTableObjectsByName in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Table> getTableObjectsByName(String catName, String dbName, List<String> tableNames) throws org.apache.thrift.TException
getTableObjectsByName in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Materialization getMaterializationInvalidationInfo(org.apache.hadoop.hive.metastore.api.CreationMetadata cm,
String validTxnList)
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
getMaterializationInvalidationInfo in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBExceptionorg.apache.thrift.TExceptionpublic void updateCreationMetadata(String dbName, String tableName, org.apache.hadoop.hive.metastore.api.CreationMetadata cm) 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
updateCreationMetadata in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.UnknownDBExceptionorg.apache.thrift.TExceptionpublic void updateCreationMetadata(String catName, String dbName, String tableName, org.apache.hadoop.hive.metastore.api.CreationMetadata cm) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
updateCreationMetadata in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<String> listTableNamesByFilter(String dbName, String filter, short maxTables) throws org.apache.thrift.TException
listTableNamesByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> listTableNamesByFilter(String catName, String dbName, String filter, int maxTables) throws org.apache.thrift.TException
listTableNamesByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Type getType(String name) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
name - org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionThriftHiveMetastore.Iface.get_type(java.lang.String)public List<String> getTables(String dbname, String tablePattern) throws org.apache.hadoop.hive.metastore.api.MetaException
getTables in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<String> getTables(String catName, String dbName, String tablePattern) throws org.apache.thrift.TException
getTables in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getTables(String dbname, String tablePattern, org.apache.hadoop.hive.metastore.TableType tableType) throws org.apache.hadoop.hive.metastore.api.MetaException
getTables in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<String> getTables(String catName, String dbName, String tablePattern, org.apache.hadoop.hive.metastore.TableType tableType) throws org.apache.thrift.TException
getTables in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getMaterializedViewsForRewriting(String dbName) throws org.apache.thrift.TException
getMaterializedViewsForRewriting in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getMaterializedViewsForRewriting(String catName, String dbname) throws org.apache.hadoop.hive.metastore.api.MetaException
getMaterializedViewsForRewriting in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<org.apache.hadoop.hive.metastore.api.TableMeta> getTableMeta(String catName, String dbPatterns, String tablePatterns, List<String> tableTypes) throws org.apache.thrift.TException
getTableMeta in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getAllTables(String dbname) throws org.apache.hadoop.hive.metastore.api.MetaException
getAllTables in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic List<String> getAllTables(String catName, String dbName) throws org.apache.thrift.TException
getAllTables in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean tableExists(String databaseName, String tableName) throws org.apache.thrift.TException
tableExists in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean tableExists(String catName, String dbName, String tableName) throws org.apache.thrift.TException
tableExists in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> listPartitionNames(String dbName, String tblName, short max) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
listPartitionNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<String> listPartitionNames(String catName, String dbName, String tableName, int maxParts) throws org.apache.thrift.TException
listPartitionNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> listPartitionNames(String db_name, String tbl_name, List<String> part_vals, short max_parts) throws org.apache.thrift.TException
listPartitionNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> listPartitionNames(String catName, String db_name, String tbl_name, List<String> part_vals, int max_parts) throws org.apache.thrift.TException
listPartitionNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic int getNumPartitionsByFilter(String db_name, String tbl_name, String filter) throws org.apache.thrift.TException
getNumPartitionsByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic int getNumPartitionsByFilter(String catName, String dbName, String tableName, String filter) throws org.apache.thrift.TException
getNumPartitionsByFilter in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_partition(String dbName, String tblName, org.apache.hadoop.hive.metastore.api.Partition newPart) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
alter_partition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alter_partition(String dbName, String tblName, org.apache.hadoop.hive.metastore.api.Partition newPart, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) throws org.apache.hadoop.hive.metastore.api.InvalidOperationException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
alter_partition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidOperationExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_partitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.api.Partition> newParts) throws org.apache.thrift.TException
alter_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alter_partitions(String dbName, String tblName, List<org.apache.hadoop.hive.metastore.api.Partition> newParts, org.apache.hadoop.hive.metastore.api.EnvironmentContext environmentContext) throws org.apache.thrift.TException
alter_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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) throws org.apache.thrift.TException
alter_partitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alterDatabase(String dbName, org.apache.hadoop.hive.metastore.api.Database db) throws org.apache.thrift.TException
alterDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alterDatabase(String catName, String dbName, org.apache.hadoop.hive.metastore.api.Database newDb) throws org.apache.thrift.TException
alterDatabase in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getFields(String db, String tableName) throws org.apache.thrift.TException
getFields in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getFields(String catName, String db, String tableName) throws org.apache.thrift.TException
getFields in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SQLPrimaryKey> getPrimaryKeys(org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest req) throws org.apache.thrift.TException
getPrimaryKeys in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SQLForeignKey> getForeignKeys(org.apache.hadoop.hive.metastore.api.ForeignKeysRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.thrift.TException
getForeignKeys in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SQLUniqueConstraint> getUniqueConstraints(org.apache.hadoop.hive.metastore.api.UniqueConstraintsRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.thrift.TException
getUniqueConstraints in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SQLNotNullConstraint> getNotNullConstraints(org.apache.hadoop.hive.metastore.api.NotNullConstraintsRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.thrift.TException
getNotNullConstraints in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SQLDefaultConstraint> getDefaultConstraints(org.apache.hadoop.hive.metastore.api.DefaultConstraintsRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.thrift.TException
getDefaultConstraints in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SQLCheckConstraint> getCheckConstraints(org.apache.hadoop.hive.metastore.api.CheckConstraintsRequest req) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.thrift.TException
getCheckConstraints in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.thrift.TExceptionpublic boolean updateTableColumnStatistics(org.apache.hadoop.hive.metastore.api.ColumnStatistics statsObj)
throws org.apache.thrift.TException
updateTableColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean updatePartitionColumnStatistics(org.apache.hadoop.hive.metastore.api.ColumnStatistics statsObj)
throws org.apache.thrift.TException
updatePartitionColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean setPartitionColumnStatistics(org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest request)
throws org.apache.thrift.TException
setPartitionColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void flushCache()
flushCache in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpublic List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> getTableColumnStatistics(String dbName, String tableName, List<String> colNames) throws org.apache.thrift.TException
getTableColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> getTableColumnStatistics(String catName, String dbName, String tableName, List<String> colNames) throws org.apache.thrift.TException
getTableColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic Map<String,List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj>> getPartitionColumnStatistics(String dbName, String tableName, List<String> partNames, List<String> colNames) throws org.apache.thrift.TException
getPartitionColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic Map<String,List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj>> getPartitionColumnStatistics(String catName, String dbName, String tableName, List<String> partNames, List<String> colNames) throws org.apache.thrift.TException
getPartitionColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName, String colName) throws org.apache.thrift.TException
deletePartitionColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean deletePartitionColumnStatistics(String catName, String dbName, String tableName, String partName, String colName) throws org.apache.thrift.TException
deletePartitionColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean deleteTableColumnStatistics(String dbName, String tableName, String colName) throws org.apache.thrift.TException
deleteTableColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean deleteTableColumnStatistics(String catName, String dbName, String tableName, String colName) throws org.apache.thrift.TException
deleteTableColumnStatistics in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getSchema(String db, String tableName) throws org.apache.thrift.TException
getSchema in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getSchema(String catName, String db, String tableName) throws org.apache.thrift.TException
getSchema in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic String getConfigValue(String name, String defaultValue) throws org.apache.thrift.TException, org.apache.hadoop.hive.metastore.api.ConfigValSecurityException
getConfigValue in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionorg.apache.hadoop.hive.metastore.api.ConfigValSecurityExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartition(String db, String tableName, String partName) throws org.apache.thrift.TException
getPartition in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartitionByName(String dbName, String tableName, String partName) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.AlreadyExistsException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition appendPartitionByName(String dbName, String tableName, String partName, org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) throws org.apache.hadoop.hive.metastore.api.InvalidObjectException, org.apache.hadoop.hive.metastore.api.AlreadyExistsException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
org.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean dropPartitionByName(String dbName, String tableName, String partName, boolean deleteData) 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.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean dropPartitionByName(String dbName, String tableName, String partName, boolean deleteData, org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext) 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.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<String> partitionNameToVals(String name) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
partitionNameToVals in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic Map<String,String> partitionNameToSpec(String name) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
partitionNameToSpec in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionprotected org.apache.hadoop.hive.metastore.api.Partition deepCopy(org.apache.hadoop.hive.metastore.api.Partition partition)
partition - protected org.apache.hadoop.hive.metastore.api.Table deepCopy(org.apache.hadoop.hive.metastore.api.Table table)
protected org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet deepCopy(org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet pps)
protected List<org.apache.hadoop.hive.metastore.api.FieldSchema> deepCopyFieldSchemas(List<org.apache.hadoop.hive.metastore.api.FieldSchema> schemas)
public boolean grant_role(String roleName, String userName, org.apache.hadoop.hive.metastore.api.PrincipalType principalType, String grantor, org.apache.hadoop.hive.metastore.api.PrincipalType grantorType, boolean grantOption) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
grant_role in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean create_role(org.apache.hadoop.hive.metastore.api.Role role)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
create_role in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean drop_role(String roleName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
drop_role in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Role> list_roles(String principalName, org.apache.hadoop.hive.metastore.api.PrincipalType principalType) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
list_roles in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<String> listRoleNames() throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
listRoleNames in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse get_principals_in_role(org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest req)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
get_principals_in_role in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest getRolePrincReq)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
get_role_grants_for_principal in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean grant_privileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privileges)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
grant_privileges in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean revoke_role(String roleName, String userName, org.apache.hadoop.hive.metastore.api.PrincipalType principalType, boolean grantOption) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
revoke_role in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean revoke_privileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privileges,
boolean grantOption)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
revoke_privileges in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean refresh_privileges(org.apache.hadoop.hive.metastore.api.HiveObjectRef objToRefresh,
String authorizer,
org.apache.hadoop.hive.metastore.api.PrivilegeBag grantPrivileges)
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
refresh_privileges in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.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 org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> list_privileges(String principalName, org.apache.hadoop.hive.metastore.api.PrincipalType principalType, org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
list_privileges in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic String getDelegationToken(String renewerKerberosPrincipalName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException, IOException
org.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionIOExceptionpublic String getDelegationToken(String owner, String renewerKerberosPrincipalName) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
getDelegationToken in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic long renewDelegationToken(String tokenStrForm) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
renewDelegationToken in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void cancelDelegationToken(String tokenStrForm) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
cancelDelegationToken in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean addToken(String tokenIdentifier, String delegationToken) throws org.apache.thrift.TException
addToken in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean removeToken(String tokenIdentifier) throws org.apache.thrift.TException
removeToken in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic String getToken(String tokenIdentifier) throws org.apache.thrift.TException
getToken in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getAllTokenIdentifiers() throws org.apache.thrift.TException
getAllTokenIdentifiers in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic int addMasterKey(String key) throws org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
addMasterKey in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void updateMasterKey(Integer seqNo, String key) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
updateMasterKey in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic boolean removeMasterKey(Integer keySeq) throws org.apache.thrift.TException
removeMasterKey in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic String[] getMasterKeys() throws org.apache.thrift.TException
getMasterKeys in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.common.ValidTxnList getValidTxns()
throws org.apache.thrift.TException
getValidTxns in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.common.ValidTxnList getValidTxns(long currentTxn)
throws org.apache.thrift.TException
getValidTxns in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.common.ValidWriteIdList getValidWriteIds(String fullTableName) throws org.apache.thrift.TException
getValidWriteIds in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.TableValidWriteIds> getValidWriteIds(List<String> tablesList, String validTxnList) throws org.apache.thrift.TException
getValidWriteIds in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic long openTxn(String user) throws org.apache.thrift.TException
openTxn in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<Long> replOpenTxn(String replPolicy, List<Long> srcTxnIds, String user) throws org.apache.thrift.TException
replOpenTxn in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.OpenTxnsResponse openTxns(String user, int numTxns) throws org.apache.thrift.TException
openTxns in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void rollbackTxn(long txnid)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.thrift.TException
rollbackTxn in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.thrift.TExceptionpublic void replRollbackTxn(long srcTxnId,
String replPolicy)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.thrift.TException
replRollbackTxn in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.thrift.TExceptionpublic void commitTxn(long txnid)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.hadoop.hive.metastore.api.TxnAbortedException,
org.apache.thrift.TException
commitTxn in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.hadoop.hive.metastore.api.TxnAbortedExceptionorg.apache.thrift.TExceptionpublic void replCommitTxn(long srcTxnId,
String replPolicy)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.hadoop.hive.metastore.api.TxnAbortedException,
org.apache.thrift.TException
replCommitTxn in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.hadoop.hive.metastore.api.TxnAbortedExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse showTxns()
throws org.apache.thrift.TException
showTxns in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void abortTxns(List<Long> txnids) throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException, org.apache.thrift.TException
abortTxns in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.thrift.TExceptionpublic void replTableWriteIdState(String validWriteIdList, String dbName, String tableName, List<String> partNames) throws org.apache.thrift.TException
replTableWriteIdState in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic long allocateTableWriteId(long txnId,
String dbName,
String tableName)
throws org.apache.thrift.TException
allocateTableWriteId in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.TxnToWriteId> allocateTableWriteIdsBatch(List<Long> txnIds, String dbName, String tableName) throws org.apache.thrift.TException
allocateTableWriteIdsBatch in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.TxnToWriteId> replAllocateTableWriteIdsBatch(String dbName, String tableName, String replPolicy, List<org.apache.hadoop.hive.metastore.api.TxnToWriteId> srcTxnToWriteIdList) throws org.apache.thrift.TException
replAllocateTableWriteIdsBatch in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.LockResponse lock(org.apache.hadoop.hive.metastore.api.LockRequest request)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.hadoop.hive.metastore.api.TxnAbortedException,
org.apache.thrift.TException
lock in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.hadoop.hive.metastore.api.TxnAbortedExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.LockResponse checkLock(long lockid)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.hadoop.hive.metastore.api.TxnAbortedException,
org.apache.hadoop.hive.metastore.api.NoSuchLockException,
org.apache.thrift.TException
checkLock in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.hadoop.hive.metastore.api.TxnAbortedExceptionorg.apache.hadoop.hive.metastore.api.NoSuchLockExceptionorg.apache.thrift.TExceptionpublic void unlock(long lockid)
throws org.apache.hadoop.hive.metastore.api.NoSuchLockException,
org.apache.hadoop.hive.metastore.api.TxnOpenException,
org.apache.thrift.TException
unlock in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchLockExceptionorg.apache.hadoop.hive.metastore.api.TxnOpenExceptionorg.apache.thrift.TException@Deprecated public org.apache.hadoop.hive.metastore.api.ShowLocksResponse showLocks() throws org.apache.thrift.TException
showLocks in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.ShowLocksResponse showLocks(org.apache.hadoop.hive.metastore.api.ShowLocksRequest request)
throws org.apache.thrift.TException
showLocks in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void heartbeat(long txnid,
long lockid)
throws org.apache.hadoop.hive.metastore.api.NoSuchLockException,
org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.hadoop.hive.metastore.api.TxnAbortedException,
org.apache.thrift.TException
heartbeat in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchLockExceptionorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.hadoop.hive.metastore.api.TxnAbortedExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse heartbeatTxnRange(long min,
long max)
throws org.apache.hadoop.hive.metastore.api.NoSuchTxnException,
org.apache.hadoop.hive.metastore.api.TxnAbortedException,
org.apache.thrift.TException
heartbeatTxnRange in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchTxnExceptionorg.apache.hadoop.hive.metastore.api.TxnAbortedExceptionorg.apache.thrift.TException@Deprecated public void compact(String dbname, String tableName, String partitionName, org.apache.hadoop.hive.metastore.api.CompactionType type) throws org.apache.thrift.TException
compact in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@Deprecated public void compact(String dbname, String tableName, String partitionName, org.apache.hadoop.hive.metastore.api.CompactionType type, Map<String,String> tblproperties) throws org.apache.thrift.TException
compact in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.CompactionResponse compact2(String dbname, String tableName, String partitionName, org.apache.hadoop.hive.metastore.api.CompactionType type, Map<String,String> tblproperties) throws org.apache.thrift.TException
compact2 in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.ShowCompactResponse showCompactions()
throws org.apache.thrift.TException
showCompactions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@Deprecated public void addDynamicPartitions(long txnId, long writeId, String dbName, String tableName, List<String> partNames) throws org.apache.thrift.TException
addDynamicPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addDynamicPartitions(long txnId,
long writeId,
String dbName,
String tableName,
List<String> partNames,
org.apache.hadoop.hive.metastore.api.DataOperationType operationType)
throws org.apache.thrift.TException
addDynamicPartitions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void insertTable(org.apache.hadoop.hive.metastore.api.Table table,
boolean overwrite)
throws org.apache.hadoop.hive.metastore.api.MetaException
insertTable in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaException@InterfaceAudience.LimitedPrivate(value="HCatalog")
public org.apache.hadoop.hive.metastore.api.NotificationEventResponse getNextNotification(long lastEventId,
int maxEvents,
org.apache.hadoop.hive.metastore.IMetaStoreClient.NotificationFilter filter)
throws org.apache.thrift.TException
getNextNotification in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@InterfaceAudience.LimitedPrivate(value="HCatalog")
public org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId getCurrentNotificationEventId()
throws org.apache.thrift.TException
getCurrentNotificationEventId in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@InterfaceAudience.LimitedPrivate(value="HCatalog")
public org.apache.hadoop.hive.metastore.api.NotificationEventsCountResponse getNotificationEventsCount(org.apache.hadoop.hive.metastore.api.NotificationEventsCountRequest rqst)
throws org.apache.thrift.TException
getNotificationEventsCount in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TException@InterfaceAudience.LimitedPrivate(value="Apache Hive, HCatalog")
public org.apache.hadoop.hive.metastore.api.FireEventResponse fireListenerEvent(org.apache.hadoop.hive.metastore.api.FireEventRequest rqst)
throws org.apache.thrift.TException
fireListenerEvent in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic static org.apache.hadoop.hive.metastore.IMetaStoreClient newSynchronizedClient(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
IMetaStoreClient.
This may be used by multi-threaded applications until we have
fixed all reentrancy bugs.client - unsynchronized clientpublic void markPartitionForEvent(String db_name, String tbl_name, Map<String,String> partKVs, org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) throws org.apache.thrift.TException
markPartitionForEvent in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void markPartitionForEvent(String catName, String db_name, String tbl_name, Map<String,String> partKVs, org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) throws org.apache.thrift.TException
markPartitionForEvent in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean isPartitionMarkedForEvent(String db_name, String tbl_name, Map<String,String> partKVs, org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) throws org.apache.thrift.TException
isPartitionMarkedForEvent in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean isPartitionMarkedForEvent(String catName, String db_name, String tbl_name, Map<String,String> partKVs, org.apache.hadoop.hive.metastore.api.PartitionEventType eventType) throws org.apache.thrift.TException
isPartitionMarkedForEvent in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void createFunction(org.apache.hadoop.hive.metastore.api.Function func)
throws org.apache.thrift.TException
createFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alterFunction(String dbName, String funcName, org.apache.hadoop.hive.metastore.api.Function newFunction) throws org.apache.thrift.TException
alterFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alterFunction(String catName, String dbName, String funcName, org.apache.hadoop.hive.metastore.api.Function newFunction) throws org.apache.thrift.TException
alterFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropFunction(String dbName, String funcName) throws org.apache.thrift.TException
dropFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropFunction(String catName, String dbName, String funcName) throws org.apache.thrift.TException
dropFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Function getFunction(String dbName, String funcName) throws org.apache.thrift.TException
getFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Function getFunction(String catName, String dbName, String funcName) throws org.apache.thrift.TException
getFunction in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getFunctions(String dbName, String pattern) throws org.apache.thrift.TException
getFunctions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<String> getFunctions(String catName, String dbName, String pattern) throws org.apache.thrift.TException
getFunctions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.GetAllFunctionsResponse getAllFunctions()
throws org.apache.thrift.TException
getAllFunctions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionprotected void create_table_with_environment_context(org.apache.hadoop.hive.metastore.api.Table tbl,
org.apache.hadoop.hive.metastore.api.EnvironmentContext envContext)
throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException,
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
org.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.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.thrift.TException
org.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.AggrStats getAggrColStatsFor(String dbName, String tblName, List<String> colNames, List<String> partNames) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
getAggrColStatsFor in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.AggrStats getAggrColStatsFor(String catName, String dbName, String tblName, List<String> colNames, List<String> partNames) throws org.apache.thrift.TException
getAggrColStatsFor in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic Iterable<Map.Entry<Long,ByteBuffer>> getFileMetadata(List<Long> fileIds) throws org.apache.thrift.TException
getFileMetadata in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic Iterable<Map.Entry<Long,org.apache.hadoop.hive.metastore.api.MetadataPpdResult>> getFileMetadataBySarg(List<Long> fileIds, ByteBuffer sarg, boolean doGetFooters) throws org.apache.thrift.TException
getFileMetadataBySarg in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void clearFileMetadata(List<Long> fileIds) throws org.apache.thrift.TException
clearFileMetadata in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void putFileMetadata(List<Long> fileIds, List<ByteBuffer> metadata) throws org.apache.thrift.TException
putFileMetadata in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean isSameConfObj(org.apache.hadoop.conf.Configuration c)
isSameConfObj in interface org.apache.hadoop.hive.metastore.IMetaStoreClientpublic boolean cacheFileMetadata(String dbName, String tableName, String partName, boolean allParts) throws org.apache.thrift.TException
cacheFileMetadata in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic String getMetastoreDbUuid() throws org.apache.thrift.TException
getMetastoreDbUuid in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void createResourcePlan(org.apache.hadoop.hive.metastore.api.WMResourcePlan resourcePlan,
String copyFromName)
throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
createResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.WMFullResourcePlan getResourcePlan(String resourcePlanName) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
getResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.WMResourcePlan> getAllResourcePlans() throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
getAllResourcePlans in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void dropResourcePlan(String resourcePlanName) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.WMFullResourcePlan alterResourcePlan(String resourcePlanName, org.apache.hadoop.hive.metastore.api.WMNullableResourcePlan resourcePlan, boolean canActivateDisabled, boolean isForceDeactivate, boolean isReplace) 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
alterResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.WMFullResourcePlan getActiveResourcePlan()
throws org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
getActiveResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.WMValidateResourcePlanResponse validateResourcePlan(String resourcePlanName) 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
validateResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void createWMTrigger(org.apache.hadoop.hive.metastore.api.WMTrigger trigger)
throws org.apache.hadoop.hive.metastore.api.InvalidObjectException,
org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
createWMTrigger in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alterWMTrigger(org.apache.hadoop.hive.metastore.api.WMTrigger trigger)
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
alterWMTrigger in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void dropWMTrigger(String resourcePlanName, String triggerName) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropWMTrigger in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.WMTrigger> getTriggersForResourcePlan(String resourcePlan) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
getTriggersForResourcePlan in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void createWMPool(org.apache.hadoop.hive.metastore.api.WMPool pool)
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
createWMPool in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void alterWMPool(org.apache.hadoop.hive.metastore.api.WMNullablePool pool,
String poolPath)
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
alterWMPool in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void dropWMPool(String resourcePlanName, String poolPath) throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException, org.apache.hadoop.hive.metastore.api.MetaException, org.apache.thrift.TException
dropWMPool in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void createOrUpdateWMMapping(org.apache.hadoop.hive.metastore.api.WMMapping mapping,
boolean isUpdate)
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
createOrUpdateWMMapping in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void dropWMMapping(org.apache.hadoop.hive.metastore.api.WMMapping mapping)
throws org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
org.apache.hadoop.hive.metastore.api.MetaException,
org.apache.thrift.TException
dropWMMapping in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void createOrDropTriggerToPoolMapping(String resourcePlanName, String triggerName, String poolPath, boolean shouldDrop) throws org.apache.hadoop.hive.metastore.api.AlreadyExistsException, 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
createOrDropTriggerToPoolMapping in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.hadoop.hive.metastore.api.AlreadyExistsExceptionorg.apache.hadoop.hive.metastore.api.NoSuchObjectExceptionorg.apache.hadoop.hive.metastore.api.InvalidObjectExceptionorg.apache.hadoop.hive.metastore.api.MetaExceptionorg.apache.thrift.TExceptionpublic void createISchema(org.apache.hadoop.hive.metastore.api.ISchema schema)
throws org.apache.thrift.TException
createISchema in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void alterISchema(String catName, String dbName, String schemaName, org.apache.hadoop.hive.metastore.api.ISchema newSchema) throws org.apache.thrift.TException
alterISchema in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.ISchema getISchema(String catName, String dbName, String name) throws org.apache.thrift.TException
getISchema in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropISchema(String catName, String dbName, String name) throws org.apache.thrift.TException
dropISchema in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addSchemaVersion(org.apache.hadoop.hive.metastore.api.SchemaVersion schemaVersion)
throws org.apache.thrift.TException
addSchemaVersion in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.SchemaVersion getSchemaVersion(String catName, String dbName, String schemaName, int version) throws org.apache.thrift.TException
getSchemaVersion in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.SchemaVersion getSchemaLatestVersion(String catName, String dbName, String schemaName) throws org.apache.thrift.TException
getSchemaLatestVersion in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.SchemaVersion> getSchemaAllVersions(String catName, String dbName, String schemaName) throws org.apache.thrift.TException
getSchemaAllVersions in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void dropSchemaVersion(String catName, String dbName, String schemaName, int version) throws org.apache.thrift.TException
dropSchemaVersion in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.FindSchemasByColsResp getSchemaByCols(org.apache.hadoop.hive.metastore.api.FindSchemasByColsRqst rqst)
throws org.apache.thrift.TException
getSchemaByCols in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void mapSchemaVersionToSerde(String catName, String dbName, String schemaName, int version, String serdeName) throws org.apache.thrift.TException
mapSchemaVersionToSerde in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void setSchemaVersionState(String catName, String dbName, String schemaName, int version, org.apache.hadoop.hive.metastore.api.SchemaVersionState state) throws org.apache.thrift.TException
setSchemaVersionState in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addSerDe(org.apache.hadoop.hive.metastore.api.SerDeInfo serDeInfo)
throws org.apache.thrift.TException
addSerDe in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.SerDeInfo getSerDe(String serDeName) throws org.apache.thrift.TException
getSerDe in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.LockResponse lockMaterializationRebuild(String dbName, String tableName, long txnId) throws org.apache.thrift.TException
lockMaterializationRebuild in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic boolean heartbeatLockMaterializationRebuild(String dbName, String tableName, long txnId) throws org.apache.thrift.TException
heartbeatLockMaterializationRebuild in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic void addRuntimeStat(org.apache.hadoop.hive.metastore.api.RuntimeStat stat)
throws org.apache.thrift.TException
addRuntimeStat in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.RuntimeStat> getRuntimeStats(int maxWeight, int maxCreateTime) throws org.apache.thrift.TException
getRuntimeStats in interface org.apache.hadoop.hive.metastore.IMetaStoreClientorg.apache.thrift.TExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.