Package org.projectnessie
Class Hive3NessieRawStore
- java.lang.Object
-
- org.projectnessie.hms.BaseRawStore
-
- org.projectnessie.hms.BaseRawStore3
-
- org.projectnessie.Hive3NessieRawStore
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.hive.metastore.RawStore,RawStoreWithRef
- Direct Known Subclasses:
DelegatingHive3NessieRawStore
public class Hive3NessieRawStore extends BaseRawStore3
-
-
Field Summary
-
Fields inherited from class org.projectnessie.hms.BaseRawStore
conf, delegate, hasDelegate, nessie
-
-
Constructor Summary
Constructors Constructor Description Hive3NessieRawStore()Hive3NessieRawStore(boolean delegate)
-
Method Summary
-
Methods inherited from class org.projectnessie.hms.BaseRawStore3
route, route, route, route
-
Methods inherited from class org.projectnessie.hms.BaseRawStore
checkHasDelegate, commitTransaction, getCatalogs, getConf, getMetastoreDbUuid, getMetaStoreSchemaVersion, getRef, isActiveTransaction, openTransaction, rollbackTransaction, route, route, route, route, route, route, route, route, routeToDelegate, setConf, shutdown, union, union
-
-
-
-
Method Detail
-
getTable
public Table getTable(String catalogName, String dbName, String tableName) throws MetaException
- Throws:
MetaException
-
createWMTriggerToPoolMapping
public void createWMTriggerToPoolMapping(String resourcePlanName, String triggerName, String poolPath) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
-
createTableWithConstraints
public List<String> createTableWithConstraints(Table tbl, List<SQLPrimaryKey> primaryKeys, List<SQLForeignKey> foreignKeys, List<SQLUniqueConstraint> uniqueConstraints, List<SQLNotNullConstraint> notNullConstraints, List<SQLDefaultConstraint> defaultConstraints, List<SQLCheckConstraint> checkConstraints) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
refreshPrivileges
public boolean refreshPrivileges(HiveObjectRef objToRefresh, String authorizer, PrivilegeBag grantPrivileges) throws InvalidObjectException, MetaException, NoSuchObjectException
-
deletePartitionColumnStatistics
public boolean deletePartitionColumnStatistics(String catalogName, String dbName, String tableName, String partName, List<String> partVals, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
-
isPartitionMarkedForEvent
public boolean isPartitionMarkedForEvent(String catalogName, String dbName, String tblName, Map<String,String> partName, PartitionEventType evtType) throws MetaException, UnknownTableException, InvalidPartitionException, UnknownPartitionException
-
deleteTableColumnStatistics
public boolean deleteTableColumnStatistics(String catalogName, String dbName, String tableName, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
-
listPartitionGrantsAll
public List<HiveObjectPrivilege> listPartitionGrantsAll(String catalogName, String dbName, String tableName, String partitionName)
-
getPartitionPrivilegeSet
public PrincipalPrivilegeSet getPartitionPrivilegeSet(String catalogName, String dbName, String tableName, String partition, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
markPartitionForEvent
public Table markPartitionForEvent(String catalogName, String dbName, String tblName, Map<String,String> partVals, PartitionEventType evtType) throws MetaException, UnknownTableException, InvalidPartitionException, UnknownPartitionException
-
getPartitions
public List<Partition> getPartitions(String catalogName, String dbName, String tableName, int max) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
listPartitionsPsWithAuth
public List<Partition> listPartitionsPsWithAuth(String catalogName, String db_name, String tbl_name, List<String> part_vals, short max_parts, String userName, List<String> groupNames) throws MetaException, InvalidObjectException, NoSuchObjectException
-
listTableColumnGrantsAll
public List<HiveObjectPrivilege> listTableColumnGrantsAll(String catalogName, String dbName, String tableName, String columnName)
-
getPartitionColumnStatistics
public List<ColumnStatistics> getPartitionColumnStatistics(String catalogName, String dbName, String tblName, List<String> partNames, List<String> colNames) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
dropFunction
public void dropFunction(String catalogName, String dbName, String funcName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
-
listPartitionColumnGrantsAll
public List<HiveObjectPrivilege> listPartitionColumnGrantsAll(String catalogName, String dbName, String tableName, String partitionName, String columnName)
-
alterFunction
public void alterFunction(String catalogName, String dbName, String funcName, Function newFunction) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
get_aggr_stats_for
public AggrStats get_aggr_stats_for(String catalogName, String dbName, String tblName, List<String> partNames, List<String> colNames) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getFileMetadataHandler
public org.apache.hadoop.hive.metastore.FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type)
-
putFileMetadata
public void putFileMetadata(List<Long> fileIds, List<ByteBuffer> metadata, FileMetadataExprType type) throws MetaException
- Throws:
MetaException
-
getForeignKeys
public List<SQLForeignKey> getForeignKeys(String catalogName, String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name) throws MetaException
- Throws:
MetaException
-
getPrimaryKeys
public List<SQLPrimaryKey> getPrimaryKeys(String catalogName, String db_name, String tbl_name) throws MetaException
- Throws:
MetaException
-
dropConstraint
public void dropConstraint(String catalogName, String dbName, String tableName, String constraintName) throws NoSuchObjectException
- Throws:
NoSuchObjectException
-
dropConstraint
public void dropConstraint(String catalogName, String dbName, String tableName, String constraintName, boolean missingOk) throws NoSuchObjectException
- Throws:
NoSuchObjectException
-
listPrincipalDBGrants
public List<HiveObjectPrivilege> listPrincipalDBGrants(String principalName, PrincipalType principalType, String catName, String dbName)
-
getFileMetadataByExpr
public void getFileMetadataByExpr(List<Long> fileIds, FileMetadataExprType type, byte[] expr, ByteBuffer[] metadatas, ByteBuffer[] exprResults, boolean[] eliminated) throws MetaException
- Throws:
MetaException
-
listPrincipalDBGrantsAll
public List<HiveObjectPrivilege> listPrincipalDBGrantsAll(String principalName, PrincipalType principalType)
-
grantRole
public boolean grantRole(Role role, String userName, PrincipalType principalType, String grantor, PrincipalType grantorType, boolean grantOption) throws MetaException, NoSuchObjectException, InvalidObjectException
-
listPrincipalPartitionGrantsAll
public List<HiveObjectPrivilege> listPrincipalPartitionGrantsAll(String principalName, PrincipalType principalType)
-
listPrincipalTableColumnGrantsAll
public List<HiveObjectPrivilege> listPrincipalTableColumnGrantsAll(String principalName, PrincipalType principalType)
-
listPrincipalPartitionColumnGrantsAll
public List<HiveObjectPrivilege> listPrincipalPartitionColumnGrantsAll(String principalName, PrincipalType principalType)
-
verifySchema
public void verifySchema() throws MetaException- Throws:
MetaException
-
listPrincipalGlobalGrants
public List<HiveObjectPrivilege> listPrincipalGlobalGrants(String principalName, PrincipalType principalType)
-
listRoles
public List<Role> listRoles(String principalName, PrincipalType principalType)
-
addMasterKey
public int addMasterKey(String key) throws MetaException
- Throws:
MetaException
-
removeRole
public boolean removeRole(String roleName) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
cleanNotificationEvents
public void cleanNotificationEvents(int olderThan)
-
flushCache
public void flushCache()
-
updateTableColumnStatistics
public boolean updateTableColumnStatistics(ColumnStatistics colStats) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
-
isFileMetadataSupported
public boolean isFileMetadataSupported()
-
getNumPartitionsByExpr
public int getNumPartitionsByExpr(String catalogName, String dbName, String tblName, byte[] expr) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getPartitionColsWithStats
public Map<String,List<String>> getPartitionColsWithStats(String catalogName, String dbName, String tableName) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
addForeignKeys
public List<String> addForeignKeys(List<SQLForeignKey> fks) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
addPrimaryKeys
public List<String> addPrimaryKeys(List<SQLPrimaryKey> pks) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
dropType
public boolean dropType(String typeName)
-
addRole
public boolean addRole(String rowName, String ownerName) throws InvalidObjectException, MetaException, NoSuchObjectException
-
getRole
public Role getRole(String roleName) throws NoSuchObjectException
- Throws:
NoSuchObjectException
-
getMasterKeys
public String[] getMasterKeys()
-
getPartitionColStatsForDatabase
public List<org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.ColStatsObjWithSourceInfo> getPartitionColStatsForDatabase(String catalogName, String dbName) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getNotificationEventsCount
public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst)
-
getUniqueConstraints
public List<SQLUniqueConstraint> getUniqueConstraints(String catalogName, String db_name, String tbl_name) throws MetaException
- Throws:
MetaException
-
getNotNullConstraints
public List<SQLNotNullConstraint> getNotNullConstraints(String catalogName, String db_name, String tbl_name) throws MetaException
- Throws:
MetaException
-
getDefaultConstraints
public List<SQLDefaultConstraint> getDefaultConstraints(String catalogName, String db_name, String tbl_name) throws MetaException
- Throws:
MetaException
-
getCheckConstraints
public List<SQLCheckConstraint> getCheckConstraints(String catalogName, String db_name, String tbl_name) throws MetaException
- Throws:
MetaException
-
addUniqueConstraints
public List<String> addUniqueConstraints(List<SQLUniqueConstraint> uks) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
addNotNullConstraints
public List<String> addNotNullConstraints(List<SQLNotNullConstraint> nns) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
addDefaultConstraints
public List<String> addDefaultConstraints(List<SQLDefaultConstraint> dv) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
addCheckConstraints
public List<String> addCheckConstraints(List<SQLCheckConstraint> cc) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
createResourcePlan
public void createResourcePlan(WMResourcePlan resourcePlan, String copyFrom, int defaultPoolSize) throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException
-
getResourcePlan
public WMFullResourcePlan getResourcePlan(String name) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
getAllResourcePlans
public List<WMResourcePlan> getAllResourcePlans() throws MetaException
- Throws:
MetaException
-
alterResourcePlan
public WMFullResourcePlan alterResourcePlan(String name, WMNullableResourcePlan resourcePlan, boolean canActivateDisabled, boolean canDeactivate, boolean isReplace) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
-
getActiveResourcePlan
public WMFullResourcePlan getActiveResourcePlan() throws MetaException
- Throws:
MetaException
-
validateResourcePlan
public WMValidateResourcePlanResponse validateResourcePlan(String name) throws NoSuchObjectException, InvalidObjectException, MetaException
-
createWMTrigger
public void createWMTrigger(WMTrigger trigger) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
-
alterWMTrigger
public void alterWMTrigger(WMTrigger trigger) throws NoSuchObjectException, InvalidOperationException, MetaException
-
getTriggersForResourcePlan
public List<WMTrigger> getTriggersForResourcePlan(String resourcePlanName) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
createPool
public void createPool(WMPool pool) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
-
alterPool
public void alterPool(WMNullablePool pool, String poolPath) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
-
dropWMPool
public void dropWMPool(String resourcePlanName, String poolPath) throws NoSuchObjectException, InvalidOperationException, MetaException
-
createOrUpdateWMMapping
public void createOrUpdateWMMapping(WMMapping mapping, boolean update) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
-
dropWMMapping
public void dropWMMapping(WMMapping mapping) throws NoSuchObjectException, InvalidOperationException, MetaException
-
dropWMTriggerToPoolMapping
public void dropWMTriggerToPoolMapping(String resourcePlanName, String triggerName, String poolPath) throws NoSuchObjectException, InvalidOperationException, MetaException
-
createISchema
public void createISchema(ISchema schema) throws AlreadyExistsException, MetaException, NoSuchObjectException
-
alterISchema
public void alterISchema(ISchemaName schemaName, ISchema newSchema) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
getISchema
public ISchema getISchema(ISchemaName schemaName) throws MetaException
- Throws:
MetaException
-
dropISchema
public void dropISchema(ISchemaName schemaName) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
addSchemaVersion
public void addSchemaVersion(SchemaVersion schemaVersion) throws AlreadyExistsException, InvalidObjectException, NoSuchObjectException, MetaException
-
alterSchemaVersion
public void alterSchemaVersion(SchemaVersionDescriptor version, SchemaVersion newVersion) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
getSchemaVersion
public SchemaVersion getSchemaVersion(SchemaVersionDescriptor version) throws MetaException
- Throws:
MetaException
-
getLatestSchemaVersion
public SchemaVersion getLatestSchemaVersion(ISchemaName schemaName) throws MetaException
- Throws:
MetaException
-
getAllSchemaVersion
public List<SchemaVersion> getAllSchemaVersion(ISchemaName schemaName) throws MetaException
- Throws:
MetaException
-
getSchemaVersionsByColumns
public List<SchemaVersion> getSchemaVersionsByColumns(String colName, String colNamespace, String type) throws MetaException
- Throws:
MetaException
-
dropSchemaVersion
public void dropSchemaVersion(SchemaVersionDescriptor version) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
addRuntimeStat
public void addRuntimeStat(RuntimeStat stat) throws MetaException
- Throws:
MetaException
-
getRuntimeStats
public List<RuntimeStat> getRuntimeStats(int maxEntries, int maxCreateTime) throws MetaException
- Throws:
MetaException
-
getTableNamesWithStats
public List<org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.FullTableName> getTableNamesWithStats() throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getAllTableNamesForStats
public List<org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.FullTableName> getAllTableNamesForStats() throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
listGlobalGrantsAll
public List<HiveObjectPrivilege> listGlobalGrantsAll()
-
getNextNotification
public NotificationEventResponse getNextNotification(NotificationEventRequest rqst)
-
getUserPrivilegeSet
public PrincipalPrivilegeSet getUserPrivilegeSet(String userName, List<String> groupNames) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
revokePrivileges
public boolean revokePrivileges(PrivilegeBag privileges, boolean grantOption) throws InvalidObjectException, MetaException, NoSuchObjectException
-
setMetaStoreSchemaVersion
public void setMetaStoreSchemaVersion(String version, String comment) throws MetaException
- Throws:
MetaException
-
listRoleMembers
public List<RolePrincipalGrant> listRoleMembers(String roleName)
-
cleanupEvents
public long cleanupEvents()
-
updateMasterKey
public void updateMasterKey(Integer seqNo, String key) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
revokeRole
public boolean revokeRole(Role role, String userName, PrincipalType principalType, boolean grantOption) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
createType
public boolean createType(Type type)
-
removeMasterKey
public boolean removeMasterKey(Integer keySeq)
-
addNotificationEvent
public void addNotificationEvent(NotificationEvent event)
-
getFileMetadata
public ByteBuffer[] getFileMetadata(List<Long> fileIds) throws MetaException
- Throws:
MetaException
-
updatePartitionColumnStatistics
public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj, List<String> partVals) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
-
listPrincipalTableGrantsAll
public List<HiveObjectPrivilege> listPrincipalTableGrantsAll(String principalName, PrincipalType principalType)
-
listRolesWithGrants
public List<RolePrincipalGrant> listRolesWithGrants(String principalName, PrincipalType principalType)
-
getCurrentNotificationEventId
public CurrentNotificationEventId getCurrentNotificationEventId()
-
createCatalog
public void createCatalog(Catalog cat) throws MetaException
- Throws:
MetaException
-
alterCatalog
public void alterCatalog(String catName, Catalog cat) throws MetaException, InvalidOperationException
-
getCatalog
public Catalog getCatalog(String catalogName) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
grantPrivileges
public boolean grantPrivileges(PrivilegeBag privileges) throws InvalidObjectException, MetaException, NoSuchObjectException
-
removeToken
public boolean removeToken(String tokenIdentifier)
-
listTableGrantsAll
public List<HiveObjectPrivilege> listTableGrantsAll(String catalogName, String dbName, String tableName)
-
getTableColumnStatistics
public ColumnStatistics getTableColumnStatistics(String catalogName, String dbName, String tableName, List<String> colName) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getDBPrivilegeSet
public PrincipalPrivilegeSet getDBPrivilegeSet(String catalogName, String dbName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
getAllFunctions
public List<Function> getAllFunctions(String catalogName) throws MetaException
- Throws:
MetaException
-
listDBGrantsAll
public List<HiveObjectPrivilege> listDBGrantsAll(String catalogName, String dbName)
-
getTablePrivilegeSet
public PrincipalPrivilegeSet getTablePrivilegeSet(String catalogName, String dbName, String tableName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
listPartitionNamesPs
public List<String> listPartitionNamesPs(String catalogName, String db_name, String tbl_name, List<String> part_vals, short max_parts) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getColumnPrivilegeSet
public PrincipalPrivilegeSet getColumnPrivilegeSet(String catalogName, String dbName, String tableName, String partitionName, String columnName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
getFunctions
public List<String> getFunctions(String catalogName, String dbName, String pattern) throws MetaException
- Throws:
MetaException
-
dropCatalog
public void dropCatalog(String catalogName) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
getMaterializedViewsForRewriting
public List<String> getMaterializedViewsForRewriting(String catalogName, String dbName) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getPartitionsByExpr
public boolean getPartitionsByExpr(String catalogName, String dbName, String tblName, byte[] expr, String defaultPartitionName, short maxParts, List<Partition> result) throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
getAllTables
public List<String> getAllTables(String catalogName, String dbName) throws MetaException
- Throws:
MetaException
-
dropTable
public boolean dropTable(String catalogName, String dbName, String tableName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
-
addPartitions
public boolean addPartitions(String catalogName, String dbName, String tblName, List<Partition> parts) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
addPartitions
public boolean addPartitions(String catalogName, String dbName, String tblName, org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy partitionSpec, boolean ifNotExists) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
dropDatabase
public boolean dropDatabase(String catalogName, String dbname) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
alterDatabase
public boolean alterDatabase(String catalogName, String dbname, Database db) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
getPartitionsWithAuth
public List<Partition> getPartitionsWithAuth(String catalogName, String dbName, String tblName, short maxParts, String userName, List<String> groupNames) throws MetaException, NoSuchObjectException, InvalidObjectException
-
createTable
public void createTable(Table tbl) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
createDatabase
public void createDatabase(Database db) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
addPartition
public boolean addPartition(Partition part) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
getDatabaseCount
public int getDatabaseCount() throws MetaException- Throws:
MetaException
-
getTableCount
public int getTableCount() throws MetaException- Throws:
MetaException
-
getPartitionCount
public int getPartitionCount() throws MetaException- Throws:
MetaException
-
dropPartition
public boolean dropPartition(String catalogName, String dbName, String tableName, List<String> part_vals) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
-
getTableMeta
public List<TableMeta> getTableMeta(String catalogName, String dbNames, String tableNames, List<String> tableTypes) throws MetaException
- Throws:
MetaException
-
getAllDatabases
public List<String> getAllDatabases(String catalogName) throws MetaException
- Throws:
MetaException
-
listTableNamesByFilter
public List<String> listTableNamesByFilter(String catalogName, String dbName, String filter, short max_tables) throws MetaException, UnknownDBException
- Throws:
MetaExceptionUnknownDBException
-
alterTable
public void alterTable(String catalogName, String dbname, String name, Table newTable) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
getTableObjectsByName
public List<Table> getTableObjectsByName(String catalogName, String dbname, List<String> tableNames) throws MetaException, UnknownDBException
- Throws:
MetaExceptionUnknownDBException
-
getPartitionsByNames
public List<Partition> getPartitionsByNames(String catalogName, String dbName, String tblName, List<String> partNames) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
doesPartitionExist
public boolean doesPartitionExist(String catalogName, String dbName, String tableName, List<String> part_vals) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getPartitionsByFilter
public List<Partition> getPartitionsByFilter(String catalogName, String dbName, String tblName, String filter, short maxParts) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getTables
public List<String> getTables(String catalogName, String dbName, String pattern) throws MetaException
- Throws:
MetaException
-
getTables
public List<String> getTables(String catalogName, String dbName, String pattern, org.apache.hadoop.hive.metastore.TableType tableType) throws MetaException
- Throws:
MetaException
-
getPartitionWithAuth
public Partition getPartitionWithAuth(String catalogName, String dbName, String tblName, List<String> partVals, String user_name, List<String> group_names) throws MetaException, NoSuchObjectException, InvalidObjectException
-
getDatabase
public Database getDatabase(String catalogName, String name) throws NoSuchObjectException
- Throws:
NoSuchObjectException
-
getDatabases
public List<String> getDatabases(String catalogName, String pattern) throws MetaException
- Throws:
MetaException
-
dropPartitions
public void dropPartitions(String catalogName, String dbName, String tblName, List<String> partNames) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
getPartition
public Partition getPartition(String catalogName, String dbName, String tableName, List<String> part_vals) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
listPartitionNames
public List<String> listPartitionNames(String catalogName, String db_name, String tbl_name, short max_parts) throws MetaException
- Throws:
MetaException
-
getNumPartitionsByFilter
public int getNumPartitionsByFilter(String catalogName, String dbName, String tblName, String filter) throws MetaException, NoSuchObjectException
- Throws:
MetaExceptionNoSuchObjectException
-
listPartitionValues
public PartitionValuesResponse listPartitionValues(String catalogName, String db_name, String tbl_name, List<FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<FieldSchema> order, long maxParts) throws MetaException
- Throws:
MetaException
-
alterPartitions
public void alterPartitions(String catalogName, String db_name, String tbl_name, List<List<String>> part_vals_list, List<Partition> new_parts) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
alterPartition
public void alterPartition(String catalogName, String db_name, String tbl_name, List<String> part_vals, Partition new_part) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
listPrincipalPartitionGrants
public List<HiveObjectPrivilege> listPrincipalPartitionGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName, List<String> partValues, String partName)
-
listAllTableGrants
public List<HiveObjectPrivilege> listAllTableGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName)
-
listPrincipalPartitionColumnGrants
public List<HiveObjectPrivilege> listPrincipalPartitionColumnGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName, List<String> partValues, String partName, String columnName)
-
listPrincipalTableColumnGrants
public List<HiveObjectPrivilege> listPrincipalTableColumnGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName, String columnName)
-
addSerde
public void addSerde(SerDeInfo serde) throws AlreadyExistsException, MetaException
- Throws:
AlreadyExistsExceptionMetaException
-
getSerDeInfo
public SerDeInfo getSerDeInfo(String serDeName) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
dropWMTrigger
public void dropWMTrigger(String resourcePlanName, String triggerName) throws NoSuchObjectException, InvalidOperationException, MetaException
-
deleteRuntimeStats
public int deleteRuntimeStats(int maxRetainSecs) throws MetaException- Throws:
MetaException
-
dropResourcePlan
public void dropResourcePlan(String name) throws NoSuchObjectException, MetaException
- Throws:
NoSuchObjectExceptionMetaException
-
updateCreationMetadata
public void updateCreationMetadata(String catalogName, String dbname, String tablename, CreationMetadata cm) throws MetaException
- Throws:
MetaException
-
getFunction
public Function getFunction(String catalogName, String dbName, String funcName) throws MetaException
- Throws:
MetaException
-
createFunction
public void createFunction(Function func) throws InvalidObjectException, MetaException
- Throws:
InvalidObjectExceptionMetaException
-
-