public class HiveMetastoreClosure extends Object
| Constructor and Description |
|---|
HiveMetastoreClosure(HiveMetastore delegate) |
public HiveMetastoreClosure(HiveMetastore delegate)
public Optional<Table> getTable(HiveIdentity identity, String databaseName, String tableName)
public Set<ColumnStatisticType> getSupportedColumnStatistics(Type type)
public PartitionStatistics getTableStatistics(HiveIdentity identity, String databaseName, String tableName)
public Map<String,PartitionStatistics> getPartitionStatistics(HiveIdentity identity, String databaseName, String tableName, Set<String> partitionNames)
public void updateTableStatistics(HiveIdentity identity, String databaseName, String tableName, Function<PartitionStatistics,PartitionStatistics> update)
public void updatePartitionStatistics(HiveIdentity identity, String databaseName, String tableName, String partitionName, Function<PartitionStatistics,PartitionStatistics> update)
public List<String> getTablesWithParameter(String databaseName, String parameterKey, String parameterValue)
public void createDatabase(HiveIdentity identity, Database database)
public void dropDatabase(HiveIdentity identity, String databaseName)
public void renameDatabase(HiveIdentity identity, String databaseName, String newDatabaseName)
public void setDatabaseOwner(HiveIdentity identity, String databaseName, HivePrincipal principal)
public void createTable(HiveIdentity identity, Table table, PrincipalPrivileges principalPrivileges)
public void dropTable(HiveIdentity identity, String databaseName, String tableName, boolean deleteData)
public void replaceTable(HiveIdentity identity, String databaseName, String tableName, Table newTable, PrincipalPrivileges principalPrivileges)
public void renameTable(HiveIdentity identity, String databaseName, String tableName, String newDatabaseName, String newTableName)
public void commentTable(HiveIdentity identity, String databaseName, String tableName, Optional<String> comment)
public void addColumn(HiveIdentity identity, String databaseName, String tableName, String columnName, HiveType columnType, String columnComment)
public void renameColumn(HiveIdentity identity, String databaseName, String tableName, String oldColumnName, String newColumnName)
public void dropColumn(HiveIdentity identity, String databaseName, String tableName, String columnName)
public Optional<Partition> getPartition(HiveIdentity identity, String databaseName, String tableName, List<String> partitionValues)
public Optional<List<String>> getPartitionNames(HiveIdentity identity, String databaseName, String tableName)
public Optional<List<String>> getPartitionNamesByParts(HiveIdentity identity, String databaseName, String tableName, List<String> parts)
public Map<String,Optional<Partition>> getPartitionsByNames(HiveIdentity identity, String databaseName, String tableName, List<String> partitionNames)
public void addPartitions(HiveIdentity identity, String databaseName, String tableName, List<PartitionWithStatistics> partitions)
public void dropPartition(HiveIdentity identity, String databaseName, String tableName, List<String> parts, boolean deleteData)
public void alterPartition(HiveIdentity identity, String databaseName, String tableName, PartitionWithStatistics partition)
public void dropRole(String role)
public void grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor)
public void revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor)
public Set<RoleGrant> listRoleGrants(HivePrincipal principal)
public void grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, Set<HivePrivilegeInfo> privileges)
public void revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, Set<HivePrivilegeInfo> privileges)
public Set<HivePrivilegeInfo> listTablePrivileges(String databaseName, String tableName, String tableOwner, Optional<HivePrincipal> principal)
public boolean isImpersonationEnabled()
public long openTransaction(HiveIdentity identity)
public void commitTransaction(HiveIdentity identity, long transactionId)
public void sendTransactionHeartbeat(HiveIdentity identity, long transactionId)
public void acquireSharedReadLock(HiveIdentity identity, String queryId, long transactionId, List<SchemaTableName> fullTables, List<HivePartition> partitions)
public String getValidWriteIds(HiveIdentity identity, List<SchemaTableName> tables, long currentTransactionId)
Copyright © 2012–2020. All rights reserved.