|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.metastore.HiveMetaStoreClient
public class HiveMetaStoreClient
Hive Metastore Client.
| Constructor Summary | |
|---|---|
HiveMetaStoreClient(HiveConf conf)
|
|
HiveMetaStoreClient(HiveConf conf,
HiveMetaHookLoader hookLoader)
|
|
| Method Summary | |
|---|---|
Partition |
add_partition(Partition new_part)
Add a partition to the table. |
int |
add_partitions(List<Partition> new_parts)
Add partitions to the table. |
void |
alter_index(String dbname,
String base_tbl_name,
String idx_name,
Index new_idx)
|
void |
alter_partition(String dbName,
String tblName,
Partition newPart)
updates a partition to new partition |
void |
alter_table(String dbname,
String tbl_name,
Table new_tbl)
|
void |
alterDatabase(String dbName,
Database db)
|
Partition |
appendPartition(String db_name,
String table_name,
List<String> part_vals)
|
Partition |
appendPartition(String dbName,
String tableName,
String partName)
|
Partition |
appendPartitionByName(String dbName,
String tableName,
String partName)
|
void |
cancelDelegationToken(String tokenStrForm)
|
void |
close()
|
boolean |
create_role(Role role)
|
void |
createDatabase(Database db)
Create a new Database |
void |
createIndex(Index index,
Table indexTable)
create an index |
void |
createTable(Table tbl)
|
boolean |
createType(Type type)
|
boolean |
drop_role(String roleName)
|
void |
dropDatabase(String name)
|
void |
dropDatabase(String name,
boolean deleteData,
boolean ignoreUnknownDb)
|
void |
dropDatabase(String name,
boolean deleteData,
boolean ignoreUnknownDb,
boolean cascade)
|
boolean |
dropIndex(String dbName,
String tblName,
String name,
boolean deleteData)
|
boolean |
dropPartition(String db_name,
String tbl_name,
List<String> part_vals)
|
boolean |
dropPartition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
|
boolean |
dropPartition(String dbName,
String tableName,
String partName,
boolean deleteData)
|
boolean |
dropPartitionByName(String dbName,
String tableName,
String partName,
boolean deleteData)
|
void |
dropTable(String tableName,
boolean deleteData)
Deprecated. |
void |
dropTable(String dbname,
String name)
|
void |
dropTable(String dbname,
String name,
boolean deleteData,
boolean ignoreUknownTab)
Drop the table. |
boolean |
dropType(String type)
|
PrincipalPrivilegeSet |
get_privilege_set(HiveObjectRef hiveObject,
String userName,
List<String> groupNames)
|
List<String> |
getAllDatabases()
Get the names of all databases in the MetaStore. |
List<String> |
getAllTables(String dbname)
Get the names of all tables in the specified database. |
String |
getConfigValue(String name,
String defaultValue)
|
Database |
getDatabase(String name)
Get a Database Object |
List<String> |
getDatabases(String databasePattern)
Get the names of all databases in the MetaStore that match the given pattern. |
String |
getDelegationToken(String renewerKerberosPrincipalName)
|
String |
getDelegationToken(String owner,
String renewerKerberosPrincipalName)
|
List<FieldSchema> |
getFields(String db,
String tableName)
|
Index |
getIndex(String dbName,
String tblName,
String indexName)
|
Partition |
getPartition(String db_name,
String tbl_name,
List<String> part_vals)
|
Partition |
getPartition(String db,
String tableName,
String partName)
|
List<Partition> |
getPartitionsByNames(String db_name,
String tbl_name,
List<String> part_names)
Get partitions by a list of partition names. |
Partition |
getPartitionWithAuthInfo(String db_name,
String tbl_name,
List<String> part_vals,
String user_name,
List<String> group_names)
|
List<FieldSchema> |
getSchema(String db,
String tableName)
|
Table |
getTable(String tableName)
Deprecated. |
Table |
getTable(String dbname,
String name)
Get a table object. |
List<Table> |
getTableObjectsByName(String dbName,
List<String> tableNames)
|
List<String> |
getTables(String dbname,
String tablePattern)
Get the names of all tables in the specified database that satisfy the supplied table name pattern. |
String |
getTokenStrForm()
|
Type |
getType(String name)
|
Map<String,Type> |
getTypeAll(String name)
|
boolean |
grant_privileges(PrivilegeBag privileges)
|
boolean |
grant_role(String roleName,
String userName,
PrincipalType principalType,
String grantor,
PrincipalType grantorType,
boolean grantOption)
|
boolean |
isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> partKVs,
PartitionEventType eventType)
|
List<HiveObjectPrivilege> |
list_privileges(String principalName,
PrincipalType principalType,
HiveObjectRef hiveObject)
|
List<Role> |
list_roles(String principalName,
PrincipalType principalType)
|
List<Index> |
listIndexes(String dbName,
String tblName,
short max)
list all the index names of the give base table. |
List<String> |
listIndexNames(String dbName,
String tblName,
short max)
list indexes of the give base table |
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<Partition> |
listPartitions(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
|
List<Partition> |
listPartitions(String db_name,
String tbl_name,
short max_parts)
|
List<Partition> |
listPartitionsByFilter(String db_name,
String tbl_name,
String filter,
short max_parts)
Get list of partitions matching specified filter |
List<Partition> |
listPartitionsWithAuthInfo(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String user_name,
List<String> group_names)
|
List<Partition> |
listPartitionsWithAuthInfo(String db_name,
String tbl_name,
short max_parts,
String user_name,
List<String> group_names)
|
List<String> |
listRoleNames()
list all role names |
List<String> |
listTableNamesByFilter(String dbName,
String filter,
short maxTables)
Get a list of table names that match a filter. |
void |
markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> partKVs,
PartitionEventType eventType)
|
static IMetaStoreClient |
newSynchronizedClient(IMetaStoreClient client)
Creates a synchronized wrapper for any IMetaStoreClient. |
Map<String,String> |
partitionNameToSpec(String name)
|
List<String> |
partitionNameToVals(String name)
|
void |
renamePartition(String dbname,
String name,
List<String> part_vals,
Partition newPart)
rename a partition to a new partition |
long |
renewDelegationToken(String tokenStrForm)
|
boolean |
revoke_privileges(PrivilegeBag privileges)
|
boolean |
revoke_role(String roleName,
String userName,
PrincipalType principalType)
|
boolean |
tableExists(String tableName)
Deprecated. |
boolean |
tableExists(String databaseName,
String tableName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HiveMetaStoreClient(HiveConf conf)
throws MetaException
MetaException
public HiveMetaStoreClient(HiveConf conf,
HiveMetaHookLoader hookLoader)
throws MetaException
MetaException| Method Detail |
|---|
public void alter_table(String dbname,
String tbl_name,
Table new_tbl)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
alter_table in interface IMetaStoreClientdbname - tbl_name - new_tbl -
InvalidOperationException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.alter_table(
java.lang.String, java.lang.String,
org.apache.hadoop.hive.metastore.api.Table)
public void renamePartition(String dbname,
String name,
List<String> part_vals,
Partition newPart)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
IMetaStoreClient
renamePartition in interface IMetaStoreClientdbname - name - part_vals - newPart -
InvalidOperationException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.rename_partition(
java.lang.String, java.lang.String, java.util.List, org.apache.hadoop.hive.metastore.api.Partition)
public String getTokenStrForm()
throws IOException
IOExceptionpublic void close()
close in interface IMetaStoreClient
public Partition add_partition(Partition new_part)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
IMetaStoreClient
add_partition in interface IMetaStoreClientnew_part -
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.add_partition(org.apache.hadoop.hive.metastore.api.Partition)
public int add_partitions(List<Partition> new_parts)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
IMetaStoreClient
add_partitions in interface IMetaStoreClientnew_parts -
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.add_partitions(List)
public Partition appendPartition(String db_name,
String table_name,
List<String> part_vals)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
appendPartition in interface IMetaStoreClienttable_name - db_name - part_vals -
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.append_partition(java.lang.String,
java.lang.String, java.util.List)
public Partition appendPartition(String dbName,
String tableName,
String partName)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
appendPartition in interface IMetaStoreClientInvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public void createDatabase(Database db)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
org.apache.thrift.TException
createDatabase in interface IMetaStoreClientdb -
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.create_database(Database)
public void createTable(Table tbl)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
NoSuchObjectException,
org.apache.thrift.TException
createTable in interface IMetaStoreClienttbl -
MetaException
NoSuchObjectException
org.apache.thrift.TException
AlreadyExistsException
InvalidObjectExceptionThriftHiveMetastore.Iface.create_table(org.apache.hadoop.hive.metastore.api.Table)
public boolean createType(Type type)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
org.apache.thrift.TException
type -
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.create_type(org.apache.hadoop.hive.metastore.api.Type)
public void dropDatabase(String name)
throws NoSuchObjectException,
InvalidOperationException,
MetaException,
org.apache.thrift.TException
dropDatabase in interface IMetaStoreClientname -
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.drop_database(java.lang.String, boolean, boolean)
public void dropDatabase(String name,
boolean deleteData,
boolean ignoreUnknownDb)
throws NoSuchObjectException,
InvalidOperationException,
MetaException,
org.apache.thrift.TException
dropDatabase in interface IMetaStoreClientNoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public void dropDatabase(String name,
boolean deleteData,
boolean ignoreUnknownDb,
boolean cascade)
throws NoSuchObjectException,
InvalidOperationException,
MetaException,
org.apache.thrift.TException
dropDatabase in interface IMetaStoreClientNoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
public boolean dropPartition(String db_name,
String tbl_name,
List<String> part_vals)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
tbl_name - db_name - part_vals -
NoSuchObjectException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.drop_partition(java.lang.String,
java.lang.String, java.util.List, boolean)
public boolean dropPartition(String dbName,
String tableName,
String partName,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
dropPartition in interface IMetaStoreClientNoSuchObjectException
MetaException
org.apache.thrift.TException
public boolean dropPartition(String db_name,
String tbl_name,
List<String> part_vals,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
dropPartition in interface IMetaStoreClientdb_name - tbl_name - part_vals - deleteData - delete the underlying data or just delete the table in metadata
NoSuchObjectException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.drop_partition(java.lang.String,
java.lang.String, java.util.List, boolean)
public void dropTable(String dbname,
String name)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
dropTable in interface IMetaStoreClientname - dbname -
NoSuchObjectException
ExistingDependentsException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.drop_table(java.lang.String,
java.lang.String, boolean)
@Deprecated
public void dropTable(String tableName,
boolean deleteData)
throws MetaException,
UnknownTableException,
org.apache.thrift.TException,
NoSuchObjectException
dropTable in interface IMetaStoreClienttableName - The table to dropdeleteData - Should we delete the underlying data
MetaException - Could not drop table properly.
UnknownTableException - The table wasn't found.
org.apache.thrift.TException - A thrift communication error occurred
NoSuchObjectException - The table wasn't found.
public void dropTable(String dbname,
String name,
boolean deleteData,
boolean ignoreUknownTab)
throws MetaException,
org.apache.thrift.TException,
NoSuchObjectException
IMetaStoreClient
dropTable in interface IMetaStoreClientdbname - name - deleteData - delete the underlying data or just delete the table in metadata
NoSuchObjectException
ExistingDependentsException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.drop_table(java.lang.String,
java.lang.String, boolean)
public boolean dropType(String type)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
type -
MetaException
org.apache.thrift.TException
NoSuchObjectExceptionThriftHiveMetastore.Iface.drop_type(java.lang.String)
public Map<String,Type> getTypeAll(String name)
throws MetaException,
org.apache.thrift.TException
name -
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.get_type_all(java.lang.String)
public List<String> getDatabases(String databasePattern)
throws MetaException
getDatabases in interface IMetaStoreClientMetaException
public List<String> getAllDatabases()
throws MetaException
getAllDatabases in interface IMetaStoreClientMetaException
public List<Partition> listPartitions(String db_name,
String tbl_name,
short max_parts)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
listPartitions in interface IMetaStoreClienttbl_name - db_name - max_parts -
NoSuchObjectException
MetaException
org.apache.thrift.TException
public List<Partition> listPartitions(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
listPartitions in interface IMetaStoreClientNoSuchObjectException
MetaException
org.apache.thrift.TException
public List<Partition> listPartitionsWithAuthInfo(String db_name,
String tbl_name,
short max_parts,
String user_name,
List<String> group_names)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
listPartitionsWithAuthInfo in interface IMetaStoreClientNoSuchObjectException
MetaException
org.apache.thrift.TException
public List<Partition> listPartitionsWithAuthInfo(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts,
String user_name,
List<String> group_names)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
listPartitionsWithAuthInfo in interface IMetaStoreClientNoSuchObjectException
MetaException
org.apache.thrift.TException
public List<Partition> listPartitionsByFilter(String db_name,
String tbl_name,
String filter,
short max_parts)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
listPartitionsByFilter in interface IMetaStoreClientdb_name - the database nametbl_name - the table namefilter - the filter string,
for example "part1 = \"p1_abc\" and part2 <= "\p2_test\"". Filtering can
be done only on string partition keys.max_parts - the maximum number of partitions to return,
all partitions are returned if -1 is passed
MetaException
NoSuchObjectException
org.apache.thrift.TException
public Database getDatabase(String name)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
IMetaStoreClient
getDatabase in interface IMetaStoreClientname -
NoSuchObjectException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.get_database(java.lang.String)
public Partition getPartition(String db_name,
String tbl_name,
List<String> part_vals)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
getPartition in interface IMetaStoreClienttbl_name - db_name - part_vals -
MetaException
org.apache.thrift.TException
NoSuchObjectExceptionThriftHiveMetastore.Iface.get_partition(java.lang.String,
java.lang.String, java.util.List)
public List<Partition> getPartitionsByNames(String db_name,
String tbl_name,
List<String> part_names)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
IMetaStoreClient
getPartitionsByNames in interface IMetaStoreClientdb_name - database nametbl_name - table namepart_names - list of partition names
NoSuchObjectException
MetaException
org.apache.thrift.TException
public Partition getPartitionWithAuthInfo(String db_name,
String tbl_name,
List<String> part_vals,
String user_name,
List<String> group_names)
throws MetaException,
UnknownTableException,
NoSuchObjectException,
org.apache.thrift.TException
getPartitionWithAuthInfo in interface IMetaStoreClientMetaException
UnknownTableException
NoSuchObjectException
org.apache.thrift.TException
public Table getTable(String dbname,
String name)
throws MetaException,
org.apache.thrift.TException,
NoSuchObjectException
IMetaStoreClient
getTable in interface IMetaStoreClientname - dbname -
NoSuchObjectException
MetaException
org.apache.thrift.TException
NoSuchObjectExceptionThriftHiveMetastore.Iface.get_table(java.lang.String,
java.lang.String)
@Deprecated
public Table getTable(String tableName)
throws MetaException,
org.apache.thrift.TException,
NoSuchObjectException
getTable in interface IMetaStoreClienttableName - Name of the table to fetch.
MetaException - Could not fetch the table
org.apache.thrift.TException - A thrift communication error occurred
NoSuchObjectException - In case the table wasn't found.
public List<Table> getTableObjectsByName(String dbName,
List<String> tableNames)
throws MetaException,
InvalidOperationException,
UnknownDBException,
org.apache.thrift.TException
getTableObjectsByName in interface IMetaStoreClientdbName - The database the tables are located in.tableNames - The names of the tables to fetch
MetaException - Any other errors
InvalidOperationException - The input to this operation is invalid (e.g., the list of tables names is null)
UnknownDBException - The requested database could not be fetched.
org.apache.thrift.TException - A thrift communication error occurred
public List<String> listTableNamesByFilter(String dbName,
String filter,
short maxTables)
throws MetaException,
org.apache.thrift.TException,
InvalidOperationException,
UnknownDBException
listTableNamesByFilter in interface IMetaStoreClientdbName - The name of the database from which you will retrieve the table namesfilter - The filter stringmaxTables - The maximum number of tables returned
MetaException
org.apache.thrift.TException
InvalidOperationException
UnknownDBException
public Type getType(String name)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
name -
MetaException
org.apache.thrift.TException
NoSuchObjectExceptionThriftHiveMetastore.Iface.get_type(java.lang.String)
public List<String> getTables(String dbname,
String tablePattern)
throws MetaException
getTables in interface IMetaStoreClientMetaException
public List<String> getAllTables(String dbname)
throws MetaException
getAllTables in interface IMetaStoreClientMetaException
public boolean tableExists(String databaseName,
String tableName)
throws MetaException,
org.apache.thrift.TException,
UnknownDBException
tableExists in interface IMetaStoreClientMetaException
org.apache.thrift.TException
UnknownDBException
@Deprecated
public boolean tableExists(String tableName)
throws MetaException,
org.apache.thrift.TException,
UnknownDBException
tableExists in interface IMetaStoreClientMetaException
org.apache.thrift.TException
UnknownDBException
public List<String> listPartitionNames(String dbName,
String tblName,
short max)
throws MetaException,
org.apache.thrift.TException
listPartitionNames in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public List<String> listPartitionNames(String db_name,
String tbl_name,
List<String> part_vals,
short max_parts)
throws MetaException,
org.apache.thrift.TException,
NoSuchObjectException
listPartitionNames in interface IMetaStoreClientMetaException
org.apache.thrift.TException
NoSuchObjectException
public void alter_partition(String dbName,
String tblName,
Partition newPart)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
IMetaStoreClient
alter_partition in interface IMetaStoreClientdbName - database of the old partitiontblName - table name of the old partitionnewPart - new partition
InvalidOperationException - if the old partition does not exist
MetaException - if error in updating metadata
org.apache.thrift.TException - if error in communicating with metastore server
public void alterDatabase(String dbName,
Database db)
throws MetaException,
NoSuchObjectException,
org.apache.thrift.TException
alterDatabase in interface IMetaStoreClientMetaException
NoSuchObjectException
org.apache.thrift.TException
public List<FieldSchema> getFields(String db,
String tableName)
throws MetaException,
org.apache.thrift.TException,
UnknownTableException,
UnknownDBException
getFields in interface IMetaStoreClientdb - tableName -
UnknownTableException
UnknownDBException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.get_fields(java.lang.String,
java.lang.String)
public void createIndex(Index index,
Table indexTable)
throws AlreadyExistsException,
InvalidObjectException,
MetaException,
NoSuchObjectException,
org.apache.thrift.TException
createIndex in interface IMetaStoreClientindex - the index objectindexTable - which stores the index data
InvalidObjectException
MetaException
NoSuchObjectException
org.apache.thrift.TException
AlreadyExistsException
public void alter_index(String dbname,
String base_tbl_name,
String idx_name,
Index new_idx)
throws InvalidOperationException,
MetaException,
org.apache.thrift.TException
alter_index in interface IMetaStoreClientdbname - base_tbl_name - idx_name - new_idx -
InvalidOperationException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.alter_index(java.lang.String,
java.lang.String, java.lang.String, org.apache.hadoop.hive.metastore.api.Index)
public Index getIndex(String dbName,
String tblName,
String indexName)
throws MetaException,
UnknownTableException,
NoSuchObjectException,
org.apache.thrift.TException
getIndex in interface IMetaStoreClientdbName - tblName - indexName -
MetaException
UnknownTableException
NoSuchObjectException
org.apache.thrift.TException
public List<String> listIndexNames(String dbName,
String tblName,
short max)
throws MetaException,
org.apache.thrift.TException
listIndexNames in interface IMetaStoreClientdbName - tblName - max -
NoSuchObjectException
MetaException
org.apache.thrift.TException
public List<Index> listIndexes(String dbName,
String tblName,
short max)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
listIndexes in interface IMetaStoreClientdbName - tblName - max -
MetaException
org.apache.thrift.TException
NoSuchObjectException
public List<FieldSchema> getSchema(String db,
String tableName)
throws MetaException,
org.apache.thrift.TException,
UnknownTableException,
UnknownDBException
getSchema in interface IMetaStoreClientdb - tableName -
UnknownTableException
UnknownDBException
MetaException
org.apache.thrift.TExceptionThriftHiveMetastore.Iface.get_schema(java.lang.String,
java.lang.String)
public String getConfigValue(String name,
String defaultValue)
throws org.apache.thrift.TException,
ConfigValSecurityException
getConfigValue in interface IMetaStoreClientname - name of the configuration property to get the value ofdefaultValue - the value to return if property with the given name doesn't exist
org.apache.thrift.TException
ConfigValSecurityException
public Partition getPartition(String db,
String tableName,
String partName)
throws MetaException,
org.apache.thrift.TException,
UnknownTableException,
NoSuchObjectException
getPartition in interface IMetaStoreClientpartName - - partition name i.e. 'ds=2010-02-03/ts=2010-02-03 18%3A16%3A01'
MetaException
org.apache.thrift.TException
UnknownTableException
NoSuchObjectExceptionThriftHiveMetastore.Iface.get_partition(java.lang.String,
java.lang.String, java.util.List)
public Partition appendPartitionByName(String dbName,
String tableName,
String partName)
throws InvalidObjectException,
AlreadyExistsException,
MetaException,
org.apache.thrift.TException
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public boolean dropPartitionByName(String dbName,
String tableName,
String partName,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
NoSuchObjectException
MetaException
org.apache.thrift.TException
public List<String> partitionNameToVals(String name)
throws MetaException,
org.apache.thrift.TException
partitionNameToVals in interface IMetaStoreClientname - the partition name e.g. ("ds=2010-03-03/hr=12")
MetaException
org.apache.thrift.TException
public Map<String,String> partitionNameToSpec(String name)
throws MetaException,
org.apache.thrift.TException
partitionNameToSpec in interface IMetaStoreClientname - the partition name e.g. ("ds=2010-03-03/hr=12")
MetaException
org.apache.thrift.TException
public boolean dropIndex(String dbName,
String tblName,
String name,
boolean deleteData)
throws NoSuchObjectException,
MetaException,
org.apache.thrift.TException
dropIndex in interface IMetaStoreClientname - index name
NoSuchObjectException
MetaException
org.apache.thrift.TException
public boolean grant_role(String roleName,
String userName,
PrincipalType principalType,
String grantor,
PrincipalType grantorType,
boolean grantOption)
throws MetaException,
org.apache.thrift.TException
grant_role in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public boolean create_role(Role role)
throws MetaException,
org.apache.thrift.TException
create_role in interface IMetaStoreClientrole - role object
MetaException
org.apache.thrift.TException
public boolean drop_role(String roleName)
throws MetaException,
org.apache.thrift.TException
drop_role in interface IMetaStoreClientroleName - role name
MetaException
org.apache.thrift.TException
public List<Role> list_roles(String principalName,
PrincipalType principalType)
throws MetaException,
org.apache.thrift.TException
list_roles in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public List<String> listRoleNames()
throws MetaException,
org.apache.thrift.TException
IMetaStoreClient
listRoleNames in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public boolean grant_privileges(PrivilegeBag privileges)
throws MetaException,
org.apache.thrift.TException
grant_privileges in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public boolean revoke_role(String roleName,
String userName,
PrincipalType principalType)
throws MetaException,
org.apache.thrift.TException
revoke_role in interface IMetaStoreClientroleName - role nameuserName - user name
MetaException
org.apache.thrift.TException
public boolean revoke_privileges(PrivilegeBag privileges)
throws MetaException,
org.apache.thrift.TException
revoke_privileges in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject,
String userName,
List<String> groupNames)
throws MetaException,
org.apache.thrift.TException
get_privilege_set in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public List<HiveObjectPrivilege> list_privileges(String principalName,
PrincipalType principalType,
HiveObjectRef hiveObject)
throws MetaException,
org.apache.thrift.TException
list_privileges in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public String getDelegationToken(String renewerKerberosPrincipalName)
throws MetaException,
org.apache.thrift.TException,
IOException
MetaException
org.apache.thrift.TException
IOException
public String getDelegationToken(String owner,
String renewerKerberosPrincipalName)
throws MetaException,
org.apache.thrift.TException
getDelegationToken in interface IMetaStoreClientowner - the intended owner for the token
MetaException
org.apache.thrift.TException
public long renewDelegationToken(String tokenStrForm)
throws MetaException,
org.apache.thrift.TException
renewDelegationToken in interface IMetaStoreClientMetaException
org.apache.thrift.TException
public void cancelDelegationToken(String tokenStrForm)
throws MetaException,
org.apache.thrift.TException
cancelDelegationToken in interface IMetaStoreClientMetaException
org.apache.thrift.TExceptionpublic static IMetaStoreClient newSynchronizedClient(IMetaStoreClient client)
IMetaStoreClient.
This may be used by multi-threaded applications until we have
fixed all reentrancy bugs.
client - unsynchronized client
public void markPartitionForEvent(String db_name,
String tbl_name,
Map<String,String> partKVs,
PartitionEventType eventType)
throws MetaException,
org.apache.thrift.TException,
NoSuchObjectException,
UnknownDBException,
UnknownTableException,
InvalidPartitionException,
UnknownPartitionException
markPartitionForEvent in interface IMetaStoreClientMetaException
org.apache.thrift.TException
NoSuchObjectException
UnknownDBException
UnknownTableException
InvalidPartitionException
UnknownPartitionException
public boolean isPartitionMarkedForEvent(String db_name,
String tbl_name,
Map<String,String> partKVs,
PartitionEventType eventType)
throws MetaException,
NoSuchObjectException,
UnknownTableException,
UnknownDBException,
org.apache.thrift.TException,
InvalidPartitionException,
UnknownPartitionException
isPartitionMarkedForEvent in interface IMetaStoreClientMetaException
NoSuchObjectException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
InvalidPartitionException
UnknownPartitionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||