|
||||||||||
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_partitions(String dbName,
String tblName,
List<Partition> newParts)
updates a list of partitions |
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 |
deletePartitionColumnStatistics(String dbName,
String tableName,
String partName,
String colName)
Delete partition level column statistics given dbName, tableName, partName and colName |
boolean |
deleteTableColumnStatistics(String dbName,
String tableName,
String colName)
Delete table level column statistics given dbName, tableName and colName |
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)
|
ColumnStatistics |
getPartitionColumnStatistics(String dbName,
String tableName,
String partName,
String colName)
Get partition level column statistics given dbName, tableName, partitionName and colName |
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. |
ColumnStatistics |
getTableColumnStatistics(String dbName,
String tableName,
String colName)
Get table level column statistics given dbName, tableName and colName |
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 |
reconnect()
Tries to reconnect this MetaStoreClient to the MetaStore. |
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)
|
boolean |
updatePartitionColumnStatistics(ColumnStatistics statsObj)
Write partition level column statistics to persistent store |
boolean |
updateTableColumnStatistics(ColumnStatistics statsObj)
Write table level column statistics to persistent store |
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 reconnect() throws MetaException
IMetaStoreClient
reconnect
in interface IMetaStoreClient
MetaException
public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, org.apache.thrift.TException
alter_table
in interface IMetaStoreClient
dbname
- tbl_name
- new_tbl
-
InvalidOperationException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
dbname
- name
- part_vals
- newPart
-
InvalidOperationException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.rename_partition(
java.lang.String, java.lang.String, java.util.List, org.apache.hadoop.hive.metastore.api.Partition)
public String getTokenStrForm() throws IOException
IOException
public 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 IMetaStoreClient
new_part
-
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
new_parts
-
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
table_name
- db_name
- part_vals
-
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
InvalidObjectException
AlreadyExistsException
MetaException
org.apache.thrift.TException
public void createDatabase(Database db) throws AlreadyExistsException, InvalidObjectException, MetaException, org.apache.thrift.TException
createDatabase
in interface IMetaStoreClient
db
-
AlreadyExistsException
InvalidObjectException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.create_database(Database)
public void createTable(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException
createTable
in interface IMetaStoreClient
tbl
-
MetaException
NoSuchObjectException
org.apache.thrift.TException
AlreadyExistsException
InvalidObjectException
ThriftHiveMetastore.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.TException
ThriftHiveMetastore.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 IMetaStoreClient
name
-
NoSuchObjectException
InvalidOperationException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
NoSuchObjectException
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 IMetaStoreClient
NoSuchObjectException
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.TException
ThriftHiveMetastore.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 IMetaStoreClient
NoSuchObjectException
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 IMetaStoreClient
db_name
- tbl_name
- part_vals
- deleteData
- delete the underlying data or just delete the table in metadata
NoSuchObjectException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
name
- dbname
-
NoSuchObjectException
ExistingDependentsException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
tableName
- 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, UnsupportedOperationException
IMetaStoreClient
dropTable
in interface IMetaStoreClient
dbname
- name
- deleteData
- delete the underlying data or just delete the table in metadata
NoSuchObjectException
ExistingDependentsException
MetaException
org.apache.thrift.TException
UnsupportedOperationException
ThriftHiveMetastore.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
NoSuchObjectException
ThriftHiveMetastore.Iface.drop_type(java.lang.String)
public Map<String,Type> getTypeAll(String name) throws MetaException, org.apache.thrift.TException
name
-
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.Iface.get_type_all(java.lang.String)
public List<String> getDatabases(String databasePattern) throws MetaException
getDatabases
in interface IMetaStoreClient
MetaException
public List<String> getAllDatabases() throws MetaException
getAllDatabases
in interface IMetaStoreClient
MetaException
public List<Partition> listPartitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, org.apache.thrift.TException
listPartitions
in interface IMetaStoreClient
tbl_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 IMetaStoreClient
NoSuchObjectException
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 IMetaStoreClient
NoSuchObjectException
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 IMetaStoreClient
NoSuchObjectException
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 IMetaStoreClient
db_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 IMetaStoreClient
name
-
NoSuchObjectException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
tbl_name
- db_name
- part_vals
-
MetaException
org.apache.thrift.TException
NoSuchObjectException
ThriftHiveMetastore.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 IMetaStoreClient
db_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 IMetaStoreClient
MetaException
UnknownTableException
NoSuchObjectException
org.apache.thrift.TException
public Table getTable(String dbname, String name) throws MetaException, org.apache.thrift.TException, NoSuchObjectException
IMetaStoreClient
getTable
in interface IMetaStoreClient
name
- dbname
-
NoSuchObjectException
MetaException
org.apache.thrift.TException
NoSuchObjectException
ThriftHiveMetastore.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 IMetaStoreClient
tableName
- 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 IMetaStoreClient
dbName
- 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 occurredpublic List<String> listTableNamesByFilter(String dbName, String filter, short maxTables) throws MetaException, org.apache.thrift.TException, InvalidOperationException, UnknownDBException
listTableNamesByFilter
in interface IMetaStoreClient
dbName
- 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
NoSuchObjectException
ThriftHiveMetastore.Iface.get_type(java.lang.String)
public List<String> getTables(String dbname, String tablePattern) throws MetaException
getTables
in interface IMetaStoreClient
MetaException
public List<String> getAllTables(String dbname) throws MetaException
getAllTables
in interface IMetaStoreClient
MetaException
public boolean tableExists(String databaseName, String tableName) throws MetaException, org.apache.thrift.TException, UnknownDBException
tableExists
in interface IMetaStoreClient
MetaException
org.apache.thrift.TException
UnknownDBException
@Deprecated public boolean tableExists(String tableName) throws MetaException, org.apache.thrift.TException, UnknownDBException
tableExists
in interface IMetaStoreClient
MetaException
org.apache.thrift.TException
UnknownDBException
public List<String> listPartitionNames(String dbName, String tblName, short max) throws MetaException, org.apache.thrift.TException
listPartitionNames
in interface IMetaStoreClient
MetaException
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 IMetaStoreClient
MetaException
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 IMetaStoreClient
dbName
- 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 serverpublic void alter_partitions(String dbName, String tblName, List<Partition> newParts) throws InvalidOperationException, MetaException, org.apache.thrift.TException
IMetaStoreClient
alter_partitions
in interface IMetaStoreClient
dbName
- database of the old partitiontblName
- table name of the old partitionnewParts
- list of partitions
InvalidOperationException
- if the old partition does not exist
MetaException
- if error in updating metadata
org.apache.thrift.TException
- if error in communicating with metastore serverpublic void alterDatabase(String dbName, Database db) throws MetaException, NoSuchObjectException, org.apache.thrift.TException
alterDatabase
in interface IMetaStoreClient
MetaException
NoSuchObjectException
org.apache.thrift.TException
public List<FieldSchema> getFields(String db, String tableName) throws MetaException, org.apache.thrift.TException, UnknownTableException, UnknownDBException
getFields
in interface IMetaStoreClient
db
- tableName
-
UnknownTableException
UnknownDBException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
index
- 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 IMetaStoreClient
dbname
- base_tbl_name
- idx_name
- new_idx
-
InvalidOperationException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
dbName
- 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 IMetaStoreClient
dbName
- 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 IMetaStoreClient
dbName
- tblName
- max
-
MetaException
org.apache.thrift.TException
NoSuchObjectException
public boolean updateTableColumnStatistics(ColumnStatistics statsObj) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
updateTableColumnStatistics
in interface IMetaStoreClient
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
updatePartitionColumnStatistics
in interface IMetaStoreClient
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
public ColumnStatistics getTableColumnStatistics(String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, org.apache.thrift.TException, InvalidInputException, InvalidObjectException
getTableColumnStatistics
in interface IMetaStoreClient
NoSuchObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
InvalidObjectException
public ColumnStatistics getPartitionColumnStatistics(String dbName, String tableName, String partName, String colName) throws NoSuchObjectException, MetaException, org.apache.thrift.TException, InvalidInputException, InvalidObjectException
getPartitionColumnStatistics
in interface IMetaStoreClient
NoSuchObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
InvalidObjectException
public boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName, String colName) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
deletePartitionColumnStatistics
in interface IMetaStoreClient
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
public boolean deleteTableColumnStatistics(String dbName, String tableName, String colName) throws NoSuchObjectException, InvalidObjectException, MetaException, org.apache.thrift.TException, InvalidInputException
deleteTableColumnStatistics
in interface IMetaStoreClient
NoSuchObjectException
InvalidObjectException
MetaException
org.apache.thrift.TException
InvalidInputException
public List<FieldSchema> getSchema(String db, String tableName) throws MetaException, org.apache.thrift.TException, UnknownTableException, UnknownDBException
getSchema
in interface IMetaStoreClient
db
- tableName
-
UnknownTableException
UnknownDBException
MetaException
org.apache.thrift.TException
ThriftHiveMetastore.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 IMetaStoreClient
name
- 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 IMetaStoreClient
partName
- - partition name i.e. 'ds=2010-02-03/ts=2010-02-03 18%3A16%3A01'
MetaException
org.apache.thrift.TException
UnknownTableException
NoSuchObjectException
ThriftHiveMetastore.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 IMetaStoreClient
name
- 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 IMetaStoreClient
name
- 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 IMetaStoreClient
name
- 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 IMetaStoreClient
MetaException
org.apache.thrift.TException
public boolean create_role(Role role) throws MetaException, org.apache.thrift.TException
create_role
in interface IMetaStoreClient
role
- role object
MetaException
org.apache.thrift.TException
public boolean drop_role(String roleName) throws MetaException, org.apache.thrift.TException
drop_role
in interface IMetaStoreClient
roleName
- 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 IMetaStoreClient
MetaException
org.apache.thrift.TException
public List<String> listRoleNames() throws MetaException, org.apache.thrift.TException
IMetaStoreClient
listRoleNames
in interface IMetaStoreClient
MetaException
org.apache.thrift.TException
public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, org.apache.thrift.TException
grant_privileges
in interface IMetaStoreClient
MetaException
org.apache.thrift.TException
public boolean revoke_role(String roleName, String userName, PrincipalType principalType) throws MetaException, org.apache.thrift.TException
revoke_role
in interface IMetaStoreClient
roleName
- 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 IMetaStoreClient
MetaException
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 IMetaStoreClient
MetaException
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 IMetaStoreClient
MetaException
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 IMetaStoreClient
owner
- 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 IMetaStoreClient
MetaException
org.apache.thrift.TException
public void cancelDelegationToken(String tokenStrForm) throws MetaException, org.apache.thrift.TException
cancelDelegationToken
in interface IMetaStoreClient
MetaException
org.apache.thrift.TException
public 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 IMetaStoreClient
MetaException
NoSuchObjectException
org.apache.thrift.TException
UnknownTableException
UnknownDBException
UnknownPartitionException
InvalidPartitionException
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 IMetaStoreClient
MetaException
NoSuchObjectException
UnknownTableException
UnknownDBException
org.apache.thrift.TException
UnknownPartitionException
InvalidPartitionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |