public class ThriftHiveMetastoreClient extends Object implements HiveMetastoreClient
| Constructor and Description |
|---|
ThriftHiveMetastoreClient(org.apache.thrift.protocol.TProtocol protocol) |
ThriftHiveMetastoreClient(org.apache.thrift.transport.TTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
int |
addPartitions(List<org.apache.hadoop.hive.metastore.api.Partition> newPartitions) |
void |
alterDatabase(String databaseName,
org.apache.hadoop.hive.metastore.api.Database database) |
void |
alterPartition(String databaseName,
String tableName,
org.apache.hadoop.hive.metastore.api.Partition partition) |
void |
alterTable(String databaseName,
String tableName,
org.apache.hadoop.hive.metastore.api.Table newTable) |
void |
close() |
void |
createDatabase(org.apache.hadoop.hive.metastore.api.Database database) |
void |
createTable(org.apache.hadoop.hive.metastore.api.Table table) |
void |
dropDatabase(String databaseName,
boolean deleteData,
boolean cascade) |
boolean |
dropPartition(String databaseName,
String tableName,
List<String> partitionValues,
boolean deleteData) |
void |
dropTable(String databaseName,
String name,
boolean deleteData) |
List<String> |
getAllDatabases() |
List<String> |
getAllTables(String databaseName) |
org.apache.hadoop.hive.metastore.api.Database |
getDatabase(String dbName) |
org.apache.hadoop.hive.metastore.api.Partition |
getPartition(String databaseName,
String tableName,
List<String> partitionValues) |
Map<String,List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj>> |
getPartitionColumnStatistics(String databaseName,
String tableName,
List<String> columnNames,
List<String> partitionValues) |
List<String> |
getPartitionNames(String databaseName,
String tableName) |
List<String> |
getPartitionNamesFiltered(String databaseName,
String tableName,
List<String> partitionValues) |
List<org.apache.hadoop.hive.metastore.api.Partition> |
getPartitionsByNames(String databaseName,
String tableName,
List<String> partitionNames) |
org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet |
getPrivilegeSet(org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject,
String userName,
List<String> groupNames) |
List<String> |
getRoleNames() |
org.apache.hadoop.hive.metastore.api.Table |
getTable(String databaseName,
String tableName) |
List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> |
getTableColumnStatistics(String databaseName,
String tableName,
List<String> columnNames) |
List<String> |
getTableNamesByFilter(String databaseName,
String filter) |
boolean |
grantPrivileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privilegeBag) |
List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> |
listPrivileges(String principalName,
org.apache.hadoop.hive.metastore.api.PrincipalType principalType,
org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObjectRef) |
List<org.apache.hadoop.hive.metastore.api.Role> |
listRoles(String principalName,
org.apache.hadoop.hive.metastore.api.PrincipalType principalType) |
boolean |
revokePrivileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privilegeBag) |
public ThriftHiveMetastoreClient(org.apache.thrift.transport.TTransport transport)
public ThriftHiveMetastoreClient(org.apache.thrift.protocol.TProtocol protocol)
public void close()
close in interface HiveMetastoreClientclose in interface Closeableclose in interface AutoCloseablepublic List<String> getAllDatabases() throws org.apache.thrift.TException
getAllDatabases in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Database getDatabase(String dbName) throws org.apache.thrift.TException
getDatabase in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<String> getAllTables(String databaseName) throws org.apache.thrift.TException
getAllTables in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<String> getTableNamesByFilter(String databaseName, String filter) throws org.apache.thrift.TException
getTableNamesByFilter in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void createDatabase(org.apache.hadoop.hive.metastore.api.Database database)
throws org.apache.thrift.TException
createDatabase in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void dropDatabase(String databaseName, boolean deleteData, boolean cascade) throws org.apache.thrift.TException
dropDatabase in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void alterDatabase(String databaseName, org.apache.hadoop.hive.metastore.api.Database database) throws org.apache.thrift.TException
alterDatabase in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void createTable(org.apache.hadoop.hive.metastore.api.Table table)
throws org.apache.thrift.TException
createTable in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void dropTable(String databaseName, String name, boolean deleteData) throws org.apache.thrift.TException
dropTable in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void alterTable(String databaseName, String tableName, org.apache.hadoop.hive.metastore.api.Table newTable) throws org.apache.thrift.TException
alterTable in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Table getTable(String databaseName, String tableName) throws org.apache.thrift.TException
getTable in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj> getTableColumnStatistics(String databaseName, String tableName, List<String> columnNames) throws org.apache.thrift.TException
getTableColumnStatistics in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic Map<String,List<org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj>> getPartitionColumnStatistics(String databaseName, String tableName, List<String> columnNames, List<String> partitionValues) throws org.apache.thrift.TException
getPartitionColumnStatistics in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<String> getPartitionNames(String databaseName, String tableName) throws org.apache.thrift.TException
getPartitionNames in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<String> getPartitionNamesFiltered(String databaseName, String tableName, List<String> partitionValues) throws org.apache.thrift.TException
getPartitionNamesFiltered in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic int addPartitions(List<org.apache.hadoop.hive.metastore.api.Partition> newPartitions) throws org.apache.thrift.TException
addPartitions in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic boolean dropPartition(String databaseName, String tableName, List<String> partitionValues, boolean deleteData) throws org.apache.thrift.TException
dropPartition in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic void alterPartition(String databaseName, String tableName, org.apache.hadoop.hive.metastore.api.Partition partition) throws org.apache.thrift.TException
alterPartition in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.Partition getPartition(String databaseName, String tableName, List<String> partitionValues) throws org.apache.thrift.TException
getPartition in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Partition> getPartitionsByNames(String databaseName, String tableName, List<String> partitionNames) throws org.apache.thrift.TException
getPartitionsByNames in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.Role> listRoles(String principalName, org.apache.hadoop.hive.metastore.api.PrincipalType principalType) throws org.apache.thrift.TException
listRoles in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet getPrivilegeSet(org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObject,
String userName,
List<String> groupNames)
throws org.apache.thrift.TException
getPrivilegeSet in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege> listPrivileges(String principalName, org.apache.hadoop.hive.metastore.api.PrincipalType principalType, org.apache.hadoop.hive.metastore.api.HiveObjectRef hiveObjectRef) throws org.apache.thrift.TException
listPrivileges in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic List<String> getRoleNames() throws org.apache.thrift.TException
getRoleNames in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic boolean grantPrivileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privilegeBag)
throws org.apache.thrift.TException
grantPrivileges in interface HiveMetastoreClientorg.apache.thrift.TExceptionpublic boolean revokePrivileges(org.apache.hadoop.hive.metastore.api.PrivilegeBag privilegeBag)
throws org.apache.thrift.TException
revokePrivileges in interface HiveMetastoreClientorg.apache.thrift.TExceptionCopyright © 2012-2017. All Rights Reserved.