public class BridgingHiveMetastore extends Object implements HiveMetastore
| Constructor and Description |
|---|
BridgingHiveMetastore(ThriftMetastore delegate) |
@Inject public BridgingHiveMetastore(ThriftMetastore delegate)
public Optional<Database> getDatabase(String databaseName)
getDatabase in interface HiveMetastorepublic List<String> getAllDatabases()
getAllDatabases in interface HiveMetastorepublic Optional<Table> getTable(String databaseName, String tableName)
getTable in interface HiveMetastorepublic Set<ColumnStatisticType> getSupportedColumnStatistics(Type type)
getSupportedColumnStatistics in interface HiveMetastorepublic PartitionStatistics getTableStatistics(String databaseName, String tableName)
getTableStatistics in interface HiveMetastorepublic Map<String,PartitionStatistics> getPartitionStatistics(String databaseName, String tableName, Set<String> partitionNames)
getPartitionStatistics in interface HiveMetastorepublic void updateTableStatistics(String databaseName, String tableName, Function<PartitionStatistics,PartitionStatistics> update)
updateTableStatistics in interface HiveMetastorepublic void updatePartitionStatistics(String databaseName, String tableName, String partitionName, Function<PartitionStatistics,PartitionStatistics> update)
updatePartitionStatistics in interface HiveMetastorepublic Optional<List<String>> getAllTables(String databaseName)
getAllTables in interface HiveMetastorepublic Optional<List<String>> getAllViews(String databaseName)
getAllViews in interface HiveMetastorepublic void createDatabase(Database database)
createDatabase in interface HiveMetastorepublic void dropDatabase(String databaseName)
dropDatabase in interface HiveMetastorepublic void renameDatabase(String databaseName, String newDatabaseName)
renameDatabase in interface HiveMetastorepublic void createTable(Table table, PrincipalPrivileges principalPrivileges)
createTable in interface HiveMetastorepublic void dropTable(String databaseName, String tableName, boolean deleteData)
dropTable in interface HiveMetastorepublic void replaceTable(String databaseName, String tableName, Table newTable, PrincipalPrivileges principalPrivileges)
HiveMetastorereplaceTable in interface HiveMetastorepublic void renameTable(String databaseName, String tableName, String newDatabaseName, String newTableName)
renameTable in interface HiveMetastorepublic void commentTable(String databaseName, String tableName, Optional<String> comment)
commentTable in interface HiveMetastorepublic void addColumn(String databaseName, String tableName, String columnName, HiveType columnType, String columnComment)
addColumn in interface HiveMetastorepublic void renameColumn(String databaseName, String tableName, String oldColumnName, String newColumnName)
renameColumn in interface HiveMetastorepublic void dropColumn(String databaseName, String tableName, String columnName)
dropColumn in interface HiveMetastorepublic Optional<Partition> getPartition(String databaseName, String tableName, List<String> partitionValues)
getPartition in interface HiveMetastorepublic Optional<List<String>> getPartitionNames(String databaseName, String tableName)
getPartitionNames in interface HiveMetastorepublic Optional<List<String>> getPartitionNamesByParts(String databaseName, String tableName, List<String> parts)
getPartitionNamesByParts in interface HiveMetastorepublic Map<String,Optional<Partition>> getPartitionsByNames(String databaseName, String tableName, List<String> partitionNames)
getPartitionsByNames in interface HiveMetastorepublic void addPartitions(String databaseName, String tableName, List<PartitionWithStatistics> partitions)
addPartitions in interface HiveMetastorepublic void dropPartition(String databaseName, String tableName, List<String> parts, boolean deleteData)
dropPartition in interface HiveMetastorepublic void alterPartition(String databaseName, String tableName, PartitionWithStatistics partition)
alterPartition in interface HiveMetastorepublic void createRole(String role, String grantor)
createRole in interface HiveMetastorepublic void dropRole(String role)
dropRole in interface HiveMetastorepublic Set<String> listRoles()
listRoles in interface HiveMetastorepublic void grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean withAdminOption, HivePrincipal grantor)
grantRoles in interface HiveMetastorepublic void revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOptionFor, HivePrincipal grantor)
revokeRoles in interface HiveMetastorepublic Set<RoleGrant> listRoleGrants(HivePrincipal principal)
listRoleGrants in interface HiveMetastorepublic void grantTablePrivileges(String databaseName, String tableName, HivePrincipal grantee, Set<HivePrivilegeInfo> privileges)
grantTablePrivileges in interface HiveMetastorepublic void revokeTablePrivileges(String databaseName, String tableName, HivePrincipal grantee, Set<HivePrivilegeInfo> privileges)
revokeTablePrivileges in interface HiveMetastorepublic Set<HivePrivilegeInfo> listTablePrivileges(String databaseName, String tableName, HivePrincipal principal)
listTablePrivileges in interface HiveMetastoreCopyright © 2012–2019. All rights reserved.