All Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
void |
addColumn(HiveIdentity identity,
String databaseName,
String tableName,
String columnName,
HiveType columnType,
String columnComment) |
void |
addPartitions(HiveIdentity identity,
String databaseName,
String tableName,
List<PartitionWithStatistics> partitions) |
void |
alterPartition(HiveIdentity identity,
String databaseName,
String tableName,
PartitionWithStatistics partition) |
void |
commentTable(HiveIdentity identity,
String databaseName,
String tableName,
Optional<String> comment) |
void |
createDatabase(HiveIdentity identity,
Database database) |
void |
createRole(String role,
String grantor) |
void |
createTable(HiveIdentity identity,
Table table,
PrincipalPrivileges principalPrivileges) |
void |
dropColumn(HiveIdentity identity,
String databaseName,
String tableName,
String columnName) |
void |
dropDatabase(HiveIdentity identity,
String databaseName) |
void |
dropPartition(HiveIdentity identity,
String databaseName,
String tableName,
List<String> parts,
boolean deleteData) |
void |
dropRole(String role) |
void |
dropTable(HiveIdentity identity,
String databaseName,
String tableName,
boolean deleteData) |
List<String> |
getAllDatabases() |
List<String> |
getAllTables(String databaseName) |
List<String> |
getAllViews(String databaseName) |
Optional<Database> |
getDatabase(String databaseName) |
Optional<Partition> |
getPartition(HiveIdentity identity,
Table table,
List<String> partitionValues) |
Optional<List<String>> |
getPartitionNames(HiveIdentity identity,
String databaseName,
String tableName) |
Optional<List<String>> |
getPartitionNamesByParts(HiveIdentity identity,
String databaseName,
String tableName,
List<String> parts) |
Map<String,Optional<Partition>> |
getPartitionsByNames(HiveIdentity identity,
Table table,
List<String> partitionNames) |
Map<String,PartitionStatistics> |
getPartitionStatistics(HiveIdentity identity,
Table table,
List<Partition> partitions) |
Set<ColumnStatisticType> |
getSupportedColumnStatistics(Type type) |
Optional<Table> |
getTable(HiveIdentity identity,
String databaseName,
String tableName) |
PartitionStatistics |
getTableStatistics(HiveIdentity identity,
Table table) |
List<String> |
getTablesWithParameter(String databaseName,
String parameterKey,
String parameterValue) |
void |
grantRoles(Set<String> roles,
Set<HivePrincipal> grantees,
boolean adminOption,
HivePrincipal grantor) |
void |
grantTablePrivileges(String databaseName,
String tableName,
String tableOwner,
HivePrincipal grantee,
Set<HivePrivilegeInfo> privileges) |
boolean |
isImpersonationEnabled() |
Set<RoleGrant> |
listRoleGrants(HivePrincipal principal) |
Set<String> |
listRoles() |
Set<HivePrivilegeInfo> |
listTablePrivileges(String databaseName,
String tableName,
String tableOwner,
Optional<HivePrincipal> principal) |
void |
renameColumn(HiveIdentity identity,
String databaseName,
String tableName,
String oldColumnName,
String newColumnName) |
void |
renameDatabase(HiveIdentity identity,
String databaseName,
String newDatabaseName) |
void |
renameTable(HiveIdentity identity,
String databaseName,
String tableName,
String newDatabaseName,
String newTableName) |
void |
replaceTable(HiveIdentity identity,
String databaseName,
String tableName,
Table newTable,
PrincipalPrivileges principalPrivileges)
This should only be used if the semantic here is drop and add.
|
void |
revokeRoles(Set<String> roles,
Set<HivePrincipal> grantees,
boolean adminOption,
HivePrincipal grantor) |
void |
revokeTablePrivileges(String databaseName,
String tableName,
String tableOwner,
HivePrincipal grantee,
Set<HivePrivilegeInfo> privileges) |
void |
setDatabaseOwner(HiveIdentity identity,
String databaseName,
HivePrincipal principal) |
void |
updatePartitionStatistics(HiveIdentity identity,
Table table,
String partitionName,
Function<PartitionStatistics,PartitionStatistics> update) |
void |
updateTableStatistics(HiveIdentity identity,
String databaseName,
String tableName,
Function<PartitionStatistics,PartitionStatistics> update) |
void |
writeRecording() |