public class ObjectStore extends Object implements RawStore, org.apache.hadoop.conf.Configurable
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectStore.GetDbHelper |
class |
ObjectStore.GetHelper<T>
Helper class for getting stuff w/transaction, direct SQL, perf logging, etc.
|
class |
ObjectStore.UpdateMDatabaseURIRetVal |
class |
ObjectStore.UpdateMStorageDescriptorTblURIRetVal |
class |
ObjectStore.UpdatePropURIRetVal |
class |
ObjectStore.UpdateSerdeURIRetVal |
RawStore.CanNotRetry| Modifier and Type | Field and Description |
|---|---|
static String |
TRUSTSTORE_PASSWORD_KEY |
static String |
TRUSTSTORE_PATH_KEY
Java system properties for configuring SSL to the database store
|
static String |
TRUSTSTORE_TYPE_KEY |
| Constructor and Description |
|---|
ObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
List<SQLCheckConstraint> |
addCheckConstraints(List<SQLCheckConstraint> nns)
Add check constraints to a table.
|
List<SQLDefaultConstraint> |
addDefaultConstraints(List<SQLDefaultConstraint> nns)
Add default values to a table definition.
|
List<SQLForeignKey> |
addForeignKeys(List<SQLForeignKey> fks)
Add a foreign key to a table.
|
int |
addMasterKey(String key) |
void |
addNotificationEvent(NotificationEvent entry)
Add a notification entry.
|
List<SQLNotNullConstraint> |
addNotNullConstraints(List<SQLNotNullConstraint> nns)
Add not null constraints to a table.
|
void |
addPackage(AddPackageRequest request) |
boolean |
addPartition(Partition part)
Add a partition.
|
boolean |
addPartitions(String catName,
String dbName,
String tblName,
List<Partition> parts)
Add a list of partitions to a table.
|
boolean |
addPartitions(String catName,
String dbName,
String tblName,
PartitionSpecProxy partitionSpec,
boolean ifNotExists) |
List<SQLPrimaryKey> |
addPrimaryKeys(List<SQLPrimaryKey> pks)
Add a primary key to a table.
|
void |
addReplicationMetrics(ReplicationMetricList replicationMetricList)
Add the replication metrics and progress info.
|
boolean |
addRole(String roleName,
String ownerName) |
void |
addRuntimeStat(RuntimeStat stat)
Adds a RuntimeStat for persistence.
|
void |
addSchemaVersion(SchemaVersion schemaVersion)
Create a new version of an existing schema.
|
void |
addSerde(SerDeInfo serde)
Add a serde.
|
boolean |
addToken(String tokenId,
String delegationToken) |
List<SQLUniqueConstraint> |
addUniqueConstraints(List<SQLUniqueConstraint> uks)
Add unique constraints to a table.
|
void |
alterCatalog(String catName,
Catalog cat)
Alter an existing catalog.
|
boolean |
alterDatabase(String catName,
String dbName,
Database db)
Alter the database object in metastore.
|
boolean |
alterDataConnector(String dcName,
DataConnector connector)
Alter the dataconnector object in metastore.
|
void |
alterFunction(String catName,
String dbName,
String funcName,
Function newFunction)
Alter function based on new function specs.
|
void |
alterISchema(ISchemaName schemaName,
ISchema newSchema)
Alter an existing ISchema.
|
Partition |
alterPartition(String catName,
String dbname,
String name,
List<String> part_vals,
Partition newPart,
String validWriteIds)
Alter a partition.
|
List<Partition> |
alterPartitions(String catName,
String dbName,
String tblName,
List<List<String>> part_vals,
List<Partition> newParts,
long writeId,
String queryWriteIdList)
Alter a set of partitions.
|
void |
alterPool(WMNullablePool pool,
String poolPath) |
WMFullResourcePlan |
alterResourcePlan(String name,
String ns,
WMNullableResourcePlan changes,
boolean canActivateDisabled,
boolean canDeactivate,
boolean isReplace) |
void |
alterSchemaVersion(SchemaVersionDescriptor version,
SchemaVersion newVersion)
Alter a schema version.
|
Table |
alterTable(String catName,
String dbname,
String name,
Table newTable,
String queryValidWriteIds)
Alter a table.
|
void |
alterWMTrigger(WMTrigger trigger) |
void |
cleanNotificationEvents(int olderThan)
Remove older notification events.
|
long |
cleanupEvents() |
void |
cleanWriteNotificationEvents(int olderThan)
Remove older notification events.
|
boolean |
commitTransaction()
if this is the commit of the first open call then an actual commit is
called.
|
void |
createCatalog(Catalog cat)
Create a new catalog.
|
void |
createDatabase(Database db)
Create a database.
|
void |
createDataConnector(DataConnector connector)
Create a dataconnector.
|
void |
createFunction(Function func)
Register a user-defined function based on the function specification passed in.
|
void |
createISchema(ISchema schema)
Create a new ISchema.
|
void |
createOrUpdateStoredProcedure(StoredProcedure proc) |
void |
createOrUpdateWMMapping(WMMapping mapping,
boolean update) |
void |
createPool(WMPool pool) |
void |
createResourcePlan(WMResourcePlan resourcePlan,
String copyFromName,
int defaultPoolSize) |
void |
createTable(Table tbl) |
SQLAllTableConstraints |
createTableWithConstraints(Table tbl,
SQLAllTableConstraints constraints)
Create a table with constraints
|
boolean |
createType(Type type) |
void |
createWMTrigger(WMTrigger trigger) |
void |
createWMTriggerToPoolMapping(String resourcePlanName,
String triggerName,
String poolPath,
String ns) |
void |
deleteAllPartitionColumnStatistics(TableName tn,
String writeIdList) |
boolean |
deletePartitionColumnStatistics(String catName,
String dbName,
String tableName,
String partName,
List<String> partVals,
String colName,
String engine)
Deletes column statistics if present associated with a given db, table, partition and col.
|
int |
deleteReplicationMetrics(int maxRetainSecs) |
int |
deleteRuntimeStats(int maxRetainSecs)
Removes outdated statistics.
|
int |
deleteScheduledExecutions(int maxRetainSecs) |
boolean |
deleteTableColumnStatistics(String catName,
String dbName,
String tableName,
String colName,
String engine)
Delete statistics for a single column or all columns in a table.
|
boolean |
doesPartitionExist(String catName,
String dbName,
String tableName,
List<FieldSchema> partKeys,
List<String> partVals)
Check whether a partition exists.
|
void |
dropCatalog(String catalogName)
Drop a catalog.
|
void |
dropConstraint(String catName,
String dbName,
String tableName,
String constraintName,
boolean missingOk)
Drop a constraint, any constraint.
|
boolean |
dropDatabase(String catName,
String dbname)
Drop a database.
|
boolean |
dropDataConnector(String dcname)
Drop a dataconnector.
|
void |
dropFunction(String catName,
String dbName,
String funcName)
Drop a function definition.
|
void |
dropISchema(ISchemaName schemaName)
Drop an ISchema.
|
void |
dropPackage(DropPackageRequest request) |
boolean |
dropPartition(String catName,
String dbName,
String tableName,
List<String> part_vals)
Drop a partition.
|
boolean |
dropPartition(String catName,
String dbName,
String tableName,
String partName)
Drop a partition.
|
void |
dropPartitions(String catName,
String dbName,
String tblName,
List<String> partNames)
Drop a list of partitions.
|
boolean |
dropProperties(String key) |
void |
dropResourcePlan(String name,
String ns) |
void |
dropSchemaVersion(SchemaVersionDescriptor version)
Drop a version of the schema.
|
void |
dropStoredProcedure(String catName,
String dbName,
String funcName) |
boolean |
dropTable(String catName,
String dbName,
String tableName)
Drop a table.
|
boolean |
dropType(String typeName) |
void |
dropWMMapping(WMMapping mapping) |
void |
dropWMPool(String resourcePlanName,
String poolPath,
String ns) |
void |
dropWMTrigger(String resourcePlanName,
String triggerName,
String ns) |
void |
dropWMTriggerToPoolMapping(String resourcePlanName,
String triggerName,
String poolPath,
String ns) |
MTable |
ensureGetMTable(String catName,
String dbName,
String tblName)
Gets the table object for a given table, throws if anything goes wrong.
|
Collection<?> |
executeJDOQLSelect(String queryStr)
The following API
- executeJDOQLSelect
is used by HiveMetaTool.
|
long |
executeJDOQLUpdate(String queryStr)
The following API
- executeJDOQLUpdate
is used by HiveMetaTool.
|
<T> T |
fetchProperties(String key,
Function<MMetastoreDBProperties,T> transform) |
Package |
findPackage(GetPackageRequest request) |
void |
flushCache() |
AggrStats |
get_aggr_stats_for(String catName,
String dbName,
String tblName,
List<String> partNames,
List<String> colNames,
String engine)
Get aggregated stats for a table or partition(s).
|
AggrStats |
get_aggr_stats_for(String catName,
String dbName,
String tblName,
List<String> partNames,
List<String> colNames,
String engine,
String writeIdList)
Get aggregated stats for a table or partition(s).
|
WMFullResourcePlan |
getActiveResourcePlan(String ns) |
List<String> |
getAllDatabases(String catName)
Get names of all the databases in a catalog.
|
List<String> |
getAllDataConnectorNames()
Get names of all the databases in a catalog.
|
List<Function> |
getAllFunctions(String catName)
Retrieve all functions.
|
List<Table> |
getAllMaterializedViewObjectsForRewriting(String catName)
Retrieve all materialized views.
|
List<WMResourcePlan> |
getAllResourcePlans(String ns) |
List<SchemaVersion> |
getAllSchemaVersion(ISchemaName schemaName)
Get all of the versions of a schema.
|
List<String> |
getAllStoredProcedures(ListStoredProcedureRequest request) |
SQLAllTableConstraints |
getAllTableConstraints(AllTableConstraintsRequest request)
Api to fetch all constraints at once
|
SQLAllTableConstraints |
getAllTableConstraints(String catName,
String dbName,
String tblName)
Deprecated.
|
List<TableName> |
getAllTableNamesForStats() |
List<String> |
getAllTables(String catName,
String dbName)
Get all tables in a database.
|
List<String> |
getAllTokenIdentifiers() |
List<WriteEventInfo> |
getAllWriteEventInfo(long txnId,
String dbName,
String tableName)
Get all write events for a specific transaction .
|
Catalog |
getCatalog(String catalogName)
Get a catalog.
|
List<String> |
getCatalogs()
Get all the catalogs.
|
List<SQLCheckConstraint> |
getCheckConstraints(CheckConstraintsRequest request)
SQLCheckConstraint represents a single check constraint column.
|
List<SQLCheckConstraint> |
getCheckConstraints(String catName,
String db_name,
String tbl_name)
Get check constraints for columns in a table.
|
protected List<SQLCheckConstraint> |
getCheckConstraintsInternal(String catName,
String db_name_input,
String tbl_name_input,
boolean allowSql,
boolean allowJdo) |
PrincipalPrivilegeSet |
getColumnPrivilegeSet(String catName,
String dbName,
String tableName,
String partitionName,
String columnName,
String userName,
List<String> groupNames)
Get privileges for a column in a table or partition for a user.
|
org.apache.hadoop.conf.Configuration |
getConf() |
PrincipalPrivilegeSet |
getConnectorPrivilegeSet(String catName,
String connectorName,
String userName,
List<String> groupNames)
Get privileges for a connector for a user.
|
CurrentNotificationEventId |
getCurrentNotificationEventId()
Get the last issued notification event id.
|
Database |
getDatabase(String catalogName,
String name)
Get a database.
|
int |
getDatabaseCount()
Gets total number of databases.
|
Database |
getDatabaseInternal(String catalogName,
String name) |
List<String> |
getDatabases(String catName,
String pattern)
Get all database in a catalog having names that match a pattern.
|
DataConnector |
getDataConnector(String name)
Get the dataconnector with a given name, if exists.
|
PrincipalPrivilegeSet |
getDBPrivilegeSet(String catName,
String dbName,
String userName,
List<String> groupNames)
Get privileges for a database for a user.
|
List<SQLDefaultConstraint> |
getDefaultConstraints(DefaultConstraintsRequest request)
SQLDefaultConstraint represents a single default constraint column.
|
List<SQLDefaultConstraint> |
getDefaultConstraints(String catName,
String db_name,
String tbl_name)
Get default values for columns in a table.
|
ByteBuffer[] |
getFileMetadata(List<Long> fileIds) |
void |
getFileMetadataByExpr(List<Long> fileIds,
FileMetadataExprType type,
byte[] expr,
ByteBuffer[] metadatas,
ByteBuffer[] stripeBitsets,
boolean[] eliminated)
Gets file metadata from cache after applying a format-specific expression that can
produce additional information based on file metadata and also filter the file list.
|
FileMetadataHandler |
getFileMetadataHandler(FileMetadataExprType type)
Gets file metadata handler for the corresponding type.
|
List<SQLForeignKey> |
getForeignKeys(ForeignKeysRequest request)
SQLForeignKey represents a single foreign key column.
|
List<SQLForeignKey> |
getForeignKeys(String catName,
String parent_db_name,
String parent_tbl_name,
String foreign_db_name,
String foreign_tbl_name)
Get the foreign keys for a table.
|
Function |
getFunction(String catName,
String dbName,
String funcName)
Retrieve function by name.
|
List<String> |
getFunctions(String catName,
String dbName,
String pattern)
Retrieve list of function names based on name pattern.
|
protected List<Function> |
getFunctionsInternal(String catalogName) |
ISchema |
getISchema(ISchemaName schemaName)
Get an ISchema by name.
|
Database |
getJDODatabase(String catName,
String name) |
SchemaVersion |
getLatestSchemaVersion(ISchemaName schemaName)
Get the latest version of a schema.
|
String[] |
getMasterKeys() |
List<String> |
getMaterializedViewsForRewriting(String catName,
String dbName)
Get list of materialized views in a database.
|
List<MetadataTableSummary> |
getMetadataSummary(String catalogFilter,
String dbFilter,
String tableFilter)
Using resultSet to read the HMS_SUMMARY table.
|
String |
getMetastoreDbUuid()
Gets the unique id of the backing datastore for the metadata.
|
String |
getMetaStoreSchemaVersion() |
Optional<MScheduledQuery> |
getMScheduledQuery(ScheduledQueryKey key) |
NotificationEventResponse |
getNextNotification(NotificationEventRequest rqst)
Get the next notification event.
|
NotificationEventsCountResponse |
getNotificationEventsCount(NotificationEventsCountRequest rqst)
Get the number of events corresponding to given database with fromEventId.
|
List<SQLNotNullConstraint> |
getNotNullConstraints(NotNullConstraintsRequest request)
SQLNotNullConstraint represents a single not null constraint column.
|
List<SQLNotNullConstraint> |
getNotNullConstraints(String catName,
String db_name,
String tbl_name)
Get not null constraints on a table.
|
protected List<SQLNotNullConstraint> |
getNotNullConstraintsInternal(String catName,
String db_name_input,
String tbl_name_input,
boolean allowSql,
boolean allowJdo) |
int |
getNumPartitionsByExpr(String catName,
String dbName,
String tblName,
byte[] expr)
Get the number of partitions that match an already parsed expression.
|
int |
getNumPartitionsByFilter(String catName,
String dbName,
String tblName,
String filter)
Get the number of partitions that match a provided SQL filter.
|
int |
getNumPartitionsByPs(String catName,
String dbName,
String tblName,
List<String> partVals)
Get the number of partitions that match a given partial specification.
|
Partition |
getPartition(String catName,
String dbName,
String tableName,
List<String> part_vals)
Get a partition.
|
Partition |
getPartition(String catName,
String dbName,
String tableName,
List<String> part_vals,
String validWriteIds)
Get a partition.
|
List<MetaStoreServerUtils.ColStatsObjWithSourceInfo> |
getPartitionColStatsForDatabase(String catName,
String dbName)
Get column stats for all partitions of all tables in the database
|
Map<String,List<String>> |
getPartitionColsWithStats(String catName,
String dbName,
String tableName) |
List<List<ColumnStatistics>> |
getPartitionColumnStatistics(String catName,
String dbName,
String tableName,
List<String> partNames,
List<String> colNames)
Get statistics for a partition for a set of columns.
|
List<ColumnStatistics> |
getPartitionColumnStatistics(String catName,
String dbName,
String tableName,
List<String> partNames,
List<String> colNames,
String engine)
Get statistics for a partition for a set of columns.
|
List<ColumnStatistics> |
getPartitionColumnStatistics(String catName,
String dbName,
String tableName,
List<String> partNames,
List<String> colNames,
String engine,
String writeIdList)
Get statistics for a partition for a set of columns.
|
protected List<ColumnStatistics> |
getPartitionColumnStatisticsInternal(String catName,
String dbName,
String tableName,
List<String> partNames,
List<String> colNames,
String engine,
boolean allowSql,
boolean allowJdo) |
int |
getPartitionCount()
Gets total number of partitions.
|
Map<String,String> |
getPartitionLocations(String catName,
String dbName,
String tblName,
String baseLocationToNotShow,
int max)
Get the location for every partition of a given table.
|
PrincipalPrivilegeSet |
getPartitionPrivilegeSet(String catName,
String dbName,
String tableName,
String partition,
String userName,
List<String> groupNames)
Get privileges for a partition for a user.
|
List<Partition> |
getPartitions(String catName,
String dbName,
String tableName,
GetPartitionsArgs args)
Get some or all partitions for a table.
|
boolean |
getPartitionsByExpr(String catName,
String dbName,
String tblName,
List<Partition> result,
GetPartitionsArgs args)
Get partitions using an already parsed expression.
|
protected boolean |
getPartitionsByExprInternal(String catName,
String dbName,
String tblName,
List<Partition> result,
boolean allowSql,
boolean allowJdo,
GetPartitionsArgs args) |
List<Partition> |
getPartitionsByFilter(String catName,
String dbName,
String tblName,
GetPartitionsArgs args)
Get partitions with a filter.
|
protected List<Partition> |
getPartitionsByFilterInternal(String catName,
String dbName,
String tblName,
boolean allowSql,
boolean allowJdo,
GetPartitionsArgs args) |
List<Partition> |
getPartitionsByNames(String catName,
String dbName,
String tblName,
GetPartitionsArgs args)
Get partitions by name.
|
protected List<Partition> |
getPartitionsByNamesInternal(String catName,
String dbName,
String tblName,
boolean allowSql,
boolean allowJdo,
GetPartitionsArgs args) |
protected List<Partition> |
getPartitionsInternal(String catName,
String dbName,
String tblName,
boolean allowSql,
boolean allowJdo,
GetPartitionsArgs args) |
List<Partition> |
getPartitionSpecsByFilterAndProjection(Table table,
GetProjectionsSpec partitionsProjectSpec,
GetPartitionsFilterSpec filterSpec)
Generic Partition request API, providing different kinds of filtering and controlling output.
|
Partition |
getPartitionWithAuth(String catName,
String dbName,
String tblName,
List<String> partVals,
String user_name,
List<String> group_names)
Fetch a partition along with privilege information for a particular user.
|
javax.jdo.PersistenceManager |
getPersistenceManager() |
List<SQLPrimaryKey> |
getPrimaryKeys(PrimaryKeysRequest request)
SQLPrimaryKey represents a single primary key column.
|
List<SQLPrimaryKey> |
getPrimaryKeys(String catName,
String db_name,
String tbl_name)
Get the primary associated with a table.
|
PropertyStore |
getPropertyStore()
Persistent Property Management.
|
ReplicationMetricList |
getReplicationMetrics(GetReplicationMetricsRequest replicationMetricsRequest)
Gets the replication metrics and progress info.
|
WMFullResourcePlan |
getResourcePlan(String name,
String ns) |
Role |
getRole(String roleName) |
List<RuntimeStat> |
getRuntimeStats(int maxEntries,
int maxCreateTime)
Reads runtime statistic entries.
|
ScheduledQuery |
getScheduledQuery(ScheduledQueryKey key)
Returns details about a scheduled query by name.
|
SchemaVersion |
getSchemaVersion(SchemaVersionDescriptor version)
Get a specific schema version.
|
List<SchemaVersion> |
getSchemaVersionsByColumns(String colName,
String colNamespace,
String type)
Find all SchemaVersion objects that match a query.
|
SerDeInfo |
getSerDeInfo(String serDeName)
Get serde information.
|
StoredProcedure |
getStoredProcedure(String catName,
String db,
String name) |
Table |
getTable(String catName,
String dbName,
String tableName)
Get a table object.
|
Table |
getTable(String catName,
String dbName,
String tableName,
String writeIdList)
Get a table object.
|
Table |
getTable(String catalogName,
String dbName,
String tableName,
String writeIdList,
long tableId)
Get a table object.
|
List<ColumnStatistics> |
getTableColumnStatistics(String catName,
String dbName,
String tableName,
List<String> colNames)
Returns the relevant column statistics for a given column in a given table in a given database
if such statistics exist.
|
ColumnStatistics |
getTableColumnStatistics(String catName,
String dbName,
String tableName,
List<String> colNames,
String engine)
Returns the relevant column statistics for a given column in a given table in a given database
if such statistics exist.
|
ColumnStatistics |
getTableColumnStatistics(String catName,
String dbName,
String tableName,
List<String> colNames,
String engine,
String writeIdList)
Returns the relevant column statistics for a given column in a given table in a given database
if such statistics exist.
|
protected ColumnStatistics |
getTableColumnStatisticsInternal(String catName,
String dbName,
String tableName,
List<String> colNames,
String engine,
boolean allowSql,
boolean allowJdo) |
int |
getTableCount()
Gets total number of tables.
|
List<TableMeta> |
getTableMeta(String catName,
String dbNames,
String tableNames,
List<String> tableTypes) |
List<TableName> |
getTableNamesWithStats() |
List<Table> |
getTableObjectsByName(String catName,
String db,
List<String> tbl_names) |
List<Table> |
getTableObjectsByName(String catName,
String db,
List<String> tbl_names,
GetProjectionsSpec projectionSpec,
String tablePattern) |
PrincipalPrivilegeSet |
getTablePrivilegeSet(String catName,
String dbName,
String tableName,
String userName,
List<String> groupNames)
Get privileges for a table for a user.
|
List<String> |
getTables(String catName,
String dbName,
String pattern)
Get table names that match a pattern.
|
List<String> |
getTables(String catName,
String dbName,
String pattern,
TableType tableType,
int limit)
Get table names that match a pattern.
|
protected List<String> |
getTablesInternal(String catName,
String dbName,
String pattern,
TableType tableType,
boolean allowSql,
boolean allowJdo,
int limit) |
String |
getToken(String tokenId) |
List<WMTrigger> |
getTriggersForResourcePlan(String resourcePlanName,
String ns) |
Type |
getType(String typeName) |
List<SQLUniqueConstraint> |
getUniqueConstraints(String catName,
String db_name,
String tbl_name)
Get unique constraints associated with a table.
|
List<SQLUniqueConstraint> |
getUniqueConstraints(UniqueConstraintsRequest request)
SQLUniqueConstraint represents a single unique constraint column.
|
PrincipalPrivilegeSet |
getUserPrivilegeSet(String userName,
List<String> groupNames) |
boolean |
grantPrivileges(PrivilegeBag privileges) |
boolean |
grantRole(Role role,
String userName,
PrincipalType principalType,
String grantor,
PrincipalType grantorType,
boolean grantOption) |
boolean |
isActiveTransaction() |
static boolean |
isCurrentStatsValidForTheQuery(Map<String,String> statsParams,
long statsWriteId,
String queryValidWriteIdList,
boolean isCompleteStatsWriter) |
boolean |
isFileMetadataSupported() |
boolean |
isPartitionMarkedForEvent(String catName,
String dbName,
String tblName,
Map<String,String> partName,
PartitionEventType evtType) |
List<String> |
isPartOfMaterializedView(String catName,
String dbName,
String tblName)
Checking if table is part of a materialized view.
|
List<HiveObjectPrivilege> |
listAllTableGrants(String principalName,
PrincipalType principalType,
String catName,
String dbName,
String tableName)
For a given principal name and type, list the Table Grants
|
List<HiveObjectPrivilege> |
listDBGrantsAll(String catName,
String dbName)
Find all the privileges for a given database.
|
List<HiveObjectPrivilege> |
listDCGrantsAll(String dcName)
Find all the privileges for a given data connector.
|
Set<String> |
listFSRoots()
The following API
- listFSRoots
is used by HiveMetaTool.
|
List<HiveObjectPrivilege> |
listGlobalGrantsAll() |
List<MRoleMap> |
listMRoleMembers(String roleName) |
List<MRoleMap> |
listMRoles(String principalName,
PrincipalType principalType) |
List<String> |
listPackages(ListPackageRequest request) |
List<HiveObjectPrivilege> |
listPartitionColumnGrantsAll(String catName,
String dbName,
String tableName,
String partitionName,
String columnName)
Find all of the privileges for a given column in a given partition.
|
List<HiveObjectPrivilege> |
listPartitionGrantsAll(String catName,
String dbName,
String tableName,
String partitionName)
Find all of the privileges for a given partition.
|
List<String> |
listPartitionNames(String catName,
String dbName,
String tableName,
short max)
Get a partial or complete list of names for partitions of a table.
|
List<String> |
listPartitionNames(String catName,
String dbName,
String tblName,
String defaultPartName,
byte[] exprBytes,
String order,
short maxParts)
Get a partial or complete list of names for partitions of a table.
|
List<String> |
listPartitionNamesPs(String catName,
String dbName,
String tableName,
List<String> part_vals,
short max_parts)
Lists partition names that match a given partial specification
|
List<Partition> |
listPartitionsPsWithAuth(String catName,
String db_name,
String tbl_name,
GetPartitionsArgs args)
Lists partitions that match a given partial specification and sets their auth privileges.
|
PartitionValuesResponse |
listPartitionValues(String catName,
String dbName,
String tableName,
List<FieldSchema> cols,
boolean applyDistinct,
String filter,
boolean ascending,
List<FieldSchema> order,
long maxParts)
Get a list of partition values as one big struct.
|
List<HiveObjectPrivilege> |
listPrincipalDBGrants(String principalName,
PrincipalType principalType,
String catName,
String dbName)
For a given principal name and type, list the DB Grants
|
List<HiveObjectPrivilege> |
listPrincipalDBGrantsAll(String principalName,
PrincipalType principalType)
List all DB grants for a given principal.
|
List<HiveObjectPrivilege> |
listPrincipalDCGrants(String principalName,
PrincipalType principalType,
String dcName)
For a given principal name and type, list the DC Grants
|
List<HiveObjectPrivilege> |
listPrincipalDCGrantsAll(String principalName,
PrincipalType principalType)
List all DC grants for a given principal.
|
List<HiveObjectPrivilege> |
listPrincipalGlobalGrants(String principalName,
PrincipalType principalType) |
List<HiveObjectPrivilege> |
listPrincipalPartitionColumnGrants(String principalName,
PrincipalType principalType,
String catName,
String dbName,
String tableName,
List<String> partValues,
String partitionName,
String columnName)
For a given principal name and type, list the Table Grants
|
List<HiveObjectPrivilege> |
listPrincipalPartitionColumnGrantsAll(String principalName,
PrincipalType principalType)
List all Partition column grants for a given principal
|
List<HiveObjectPrivilege> |
listPrincipalPartitionGrants(String principalName,
PrincipalType principalType,
String catName,
String dbName,
String tableName,
List<String> partValues,
String partName)
For a given principal name and type, list the Table Grants
|
List<HiveObjectPrivilege> |
listPrincipalPartitionGrantsAll(String principalName,
PrincipalType principalType)
List all Partition grants for a given principal
|
List<HiveObjectPrivilege> |
listPrincipalTableColumnGrants(String principalName,
PrincipalType principalType,
String catName,
String dbName,
String tableName,
String columnName)
For a given principal name and type, list the Table Grants
|
List<HiveObjectPrivilege> |
listPrincipalTableColumnGrantsAll(String principalName,
PrincipalType principalType)
List all Table column grants for a given principal
|
List<HiveObjectPrivilege> |
listPrincipalTableGrantsAll(String principalName,
PrincipalType principalType)
List all Table grants for a given principal
|
List<RolePrincipalGrant> |
listRoleMembers(String roleName)
Get the role to principal grant mapping for given role
|
List<String> |
listRoleNames() |
List<Role> |
listRoles(String principalName,
PrincipalType principalType) |
List<RolePrincipalGrant> |
listRolesWithGrants(String principalName,
PrincipalType principalType) |
List<HiveObjectPrivilege> |
listTableColumnGrantsAll(String catName,
String dbName,
String tableName,
String columnName)
Find all of the privileges for a given column in a given table.
|
List<HiveObjectPrivilege> |
listTableGrantsAll(String catName,
String dbName,
String tableName)
Find all of the privileges for a given table
|
List<String> |
listTableNamesByFilter(String catName,
String dbName,
String filter,
short maxTables)
Gets a list of tables based on a filter string and filter type.
|
Table |
markPartitionForEvent(String catName,
String dbName,
String tblName,
Map<String,String> partName,
PartitionEventType evtType) |
int |
markScheduledExecutionsTimedOut(int timeoutSecs) |
boolean |
openTransaction()
Opens a new one or the one already created.
|
boolean |
openTransaction(String isolationLevel)
Opens a new one or the one already created.
|
void |
putFileMetadata(List<Long> fileIds,
List<ByteBuffer> metadata,
FileMetadataExprType type) |
MMetastoreDBProperties |
putProperties(String key,
String value,
String description,
byte[] content) |
boolean |
refreshPrivileges(HiveObjectRef objToRefresh,
String authorizer,
PrivilegeBag grantPrivileges) |
boolean |
removeMasterKey(Integer id) |
boolean |
removeRole(String roleName) |
boolean |
removeToken(String tokenId) |
boolean |
renameProperties(String mapKey,
String newKey) |
boolean |
revokePrivileges(PrivilegeBag privileges,
boolean grantOption) |
boolean |
revokeRole(Role role,
String userName,
PrincipalType principalType,
boolean grantOption) |
void |
rollbackTransaction()
Rolls back the current transaction if it is active
|
boolean |
runInTransaction(Runnable exec) |
void |
scheduledQueryDelete(ScheduledQuery scheduledQuery) |
void |
scheduledQueryInsert(ScheduledQuery scheduledQuery) |
void |
scheduledQueryMaintenance(ScheduledQueryMaintenanceRequest request)
Carries out maintenance of scheduled queries (insert/update/drop).
|
ScheduledQueryPollResponse |
scheduledQueryPoll(ScheduledQueryPollRequest request)
Checks whenever a query is available for execution.
|
void |
scheduledQueryProgress(ScheduledQueryProgressInfo info)
Registers the progress a scheduled query being executed.
|
void |
scheduledQueryUpdate(ScheduledQuery scheduledQuery) |
<T> Map<String,T> |
selectProperties(String key,
Function<MMetastoreDBProperties,T> transform) |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
Called whenever this object is instantiated using ReflectionUtils, and also
on connection retries.
|
void |
setMetaStoreSchemaVersion(String schemaVersion,
String comment) |
static void |
setSchemaVerified(boolean val) |
void |
shutdown() |
void |
updateCreationMetadata(String catName,
String dbname,
String tablename,
CreationMetadata cm)
Update creation metadata for a materialized view.
|
void |
updateMasterKey(Integer id,
String key) |
ObjectStore.UpdateMDatabaseURIRetVal |
updateMDatabaseURI(URI oldLoc,
URI newLoc,
boolean dryRun)
The following APIs
- updateMDatabaseURI
is used by HiveMetaTool.
|
ObjectStore.UpdatePropURIRetVal |
updateMStorageDescriptorTblPropURI(URI oldLoc,
URI newLoc,
String tblPropKey,
boolean isDryRun)
Deprecated.
|
ObjectStore.UpdateMStorageDescriptorTblURIRetVal |
updateMStorageDescriptorTblURI(URI oldLoc,
URI newLoc,
boolean isDryRun)
The following APIs
- updateMStorageDescriptorTblURI
is used by HiveMetaTool.
|
Map<String,String> |
updatePartitionColumnStatistics(ColumnStatistics colStats,
List<String> partVals,
String validWriteIds,
long writeId)
Persists the given column statistics object to the metastore
|
Map<String,String> |
updatePartitionColumnStatistics(Table table,
MTable mTable,
ColumnStatistics colStats,
List<String> partVals,
String validWriteIds,
long writeId) |
Map<String,Map<String,String>> |
updatePartitionColumnStatisticsInBatch(Map<String,ColumnStatistics> partColStatsMap,
Table tbl,
List<TransactionalMetaStoreEventListener> listeners,
String validWriteIds,
long writeId) |
ObjectStore.UpdateSerdeURIRetVal |
updateSerdeURI(URI oldLoc,
URI newLoc,
String serdeProp,
boolean isDryRun)
The following APIs
- updateSerdeURI
is used by HiveMetaTool.
|
Map<String,String> |
updateTableColumnStatistics(ColumnStatistics colStats,
String validWriteIds,
long writeId)
Persists the given column statistics object to the metastore
|
ObjectStore.UpdatePropURIRetVal |
updateTblPropURI(URI oldLoc,
URI newLoc,
String tblPropKey,
boolean isDryRun)
The following APIs
- updateMStorageDescriptorTblPropURI
is used by HiveMetaTool.
|
WMValidateResourcePlanResponse |
validateResourcePlan(String name,
String ns) |
void |
validateTableCols(Table table,
List<String> colNames) |
void |
verifySchema() |
static String |
verifyStatsChangeCtx(String fullTableName,
Map<String,String> oldP,
Map<String,String> newP,
long writeId,
String validWriteIds,
boolean isColStatsChange)
Verifies that the stats JSON string is unchanged for alter table (txn stats).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdropConstraint, getPartitions, getPartitionsByExpr, getPartitionsByFilter, getPartitionsByNames, getPartitionsWithAuth, listPartitionsPsWithAuthpublic static final String TRUSTSTORE_PATH_KEY
public static final String TRUSTSTORE_PASSWORD_KEY
public static final String TRUSTSTORE_TYPE_KEY
public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic PropertyStore getPropertyStore()
RawStoregetPropertyStore in interface RawStore@InterfaceAudience.LimitedPrivate(value="HCATALOG") @InterfaceStability.Evolving public javax.jdo.PersistenceManager getPersistenceManager()
public boolean openTransaction()
openTransaction in interface RawStorepublic boolean openTransaction(String isolationLevel)
openTransaction in interface RawStoreisolationLevel - The transaction isolation level. Only possible to set on the first call.public boolean commitTransaction()
commitTransaction in interface RawStorepublic boolean isActiveTransaction()
isActiveTransaction in interface RawStorepublic void rollbackTransaction()
rollbackTransaction in interface RawStorepublic void createCatalog(Catalog cat) throws MetaException
RawStorecreateCatalog in interface RawStorecat - Catalog to create.MetaException - if something goes wrong, usually in storing it to the database.public void alterCatalog(String catName, Catalog cat) throws MetaException, InvalidOperationException
RawStorealterCatalog in interface RawStorecatName - name of the catalog to alter.cat - new version of the catalog.MetaException - something went wrong, usually in the database.InvalidOperationException - attempt to change something about the catalog that is not
changeable, like the name.public Catalog getCatalog(String catalogName) throws NoSuchObjectException, MetaException
RawStoregetCatalog in interface RawStorecatalogName - name of the catalog.NoSuchObjectException - no catalog of this name exists.MetaException - if something goes wrong, usually in reading it from the database.public List<String> getCatalogs()
RawStoregetCatalogs in interface RawStorepublic void dropCatalog(String catalogName) throws NoSuchObjectException, MetaException
RawStoredropCatalog in interface RawStorecatalogName - name of the catalog to drop.NoSuchObjectException - no catalog of this name exists.MetaException - could mean the catalog isn't empty, could mean general database error.public void createDatabase(Database db) throws InvalidObjectException, MetaException
RawStorecreateDatabase in interface RawStoredb - database to create.InvalidObjectException - not sure it actually ever throws this.MetaException - if something goes wrong, usually in writing it to the database.public Database getDatabase(String catalogName, String name) throws NoSuchObjectException
RawStoregetDatabase in interface RawStorecatalogName - catalog the database is in.name - name of the database.NoSuchObjectException - if no such database exists.public Database getDatabaseInternal(String catalogName, String name) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic Database getJDODatabase(String catName, String name) throws NoSuchObjectException
NoSuchObjectExceptionpublic boolean alterDatabase(String catName, String dbName, Database db) throws MetaException, NoSuchObjectException
alterDatabase in interface RawStoredbName - the database namedb - the Hive Database objectcatName - name of the catalog the database is in.MetaException - something went wrong, usually with the database.NoSuchObjectException - no database of this name exists to alter.public boolean dropDatabase(String catName, String dbname) throws NoSuchObjectException, MetaException
RawStoredropDatabase in interface RawStorecatName - catalog the database is in.dbname - name of the database.NoSuchObjectException - no database in this catalog of this name to dropMetaException - something went wrong, usually with the database.public List<String> getDatabases(String catName, String pattern) throws MetaException
RawStoregetDatabases in interface RawStorecatName - name of the catalog to search for databases inpattern - pattern names should matchMetaException - something went wrong, usually with the database.public List<String> getAllDatabases(String catName) throws MetaException
RawStoregetAllDatabases in interface RawStorecatName - name of the catalog to search for databases inMetaException - something went wrong, usually with the database.public void createDataConnector(DataConnector connector) throws InvalidObjectException, MetaException
RawStorecreateDataConnector in interface RawStoreconnector - dataconnector to create.InvalidObjectException - not sure it actually ever throws this.MetaException - if something goes wrong, usually in writing it to the dataconnector.public DataConnector getDataConnector(String name) throws NoSuchObjectException
RawStoregetDataConnector in interface RawStorename - pattern names should matchNoSuchObjectException - something went wrong, usually with the database.public List<String> getAllDataConnectorNames() throws MetaException
RawStoregetAllDataConnectorNames in interface RawStoreMetaException - something went wrong, usually with the database.public boolean alterDataConnector(String dcName, DataConnector connector) throws MetaException, NoSuchObjectException
alterDataConnector in interface RawStoredcName - the dataconnector nameconnector - the Hive DataConnector objectMetaException - something went wrong, usually with the backend HMSDB.NoSuchObjectException - no dataconnector of this name exists to alter.public boolean dropDataConnector(String dcname) throws NoSuchObjectException, MetaException
RawStoredropDataConnector in interface RawStoredcname - name of the dataconnector.NoSuchObjectException - no database in this catalog of this name to dropMetaException - something went wrong, usually with the database.public boolean createType(Type type)
createType in interface RawStorepublic SQLAllTableConstraints createTableWithConstraints(Table tbl, SQLAllTableConstraints constraints) throws InvalidObjectException, MetaException
RawStorecreateTableWithConstraints in interface RawStoretbl - table definitionconstraints - wrapper of all table constraintsInvalidObjectException - one of the provided objects is malformed.MetaException - error accessing the RDBMSpublic void createTable(Table tbl) throws InvalidObjectException, MetaException
createTable in interface RawStoreInvalidObjectExceptionMetaExceptionpublic boolean dropTable(String catName, String dbName, String tableName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
RawStoredropTable in interface RawStorecatName - catalog the table is indbName - database the table is intableName - table nameMetaException - something went wrong, usually in the RDBMS or storageNoSuchObjectException - No table of this nameInvalidObjectException - Don't think this is ever actually thrownInvalidInputException - Don't think this is ever actually thrownpublic List<String> isPartOfMaterializedView(String catName, String dbName, String tblName)
RawStoreisPartOfMaterializedView in interface RawStorecatName - catalog the table is indbName - database the table is intblName - table namepublic Table getTable(String catName, String dbName, String tableName) throws MetaException
RawStoregetTable in interface RawStorecatName - catalog the table is in.dbName - database the table is in.tableName - table name.MetaException - something went wrong in the RDBMSpublic Table getTable(String catName, String dbName, String tableName, String writeIdList) throws MetaException
RawStoregetTable in interface RawStorecatName - catalog the table is in.dbName - database the table is in.tableName - table name.writeIdList - string format of valid writeId transaction listMetaException - something went wrong in the RDBMSpublic Table getTable(String catalogName, String dbName, String tableName, String writeIdList, long tableId) throws MetaException
RawStoregetTable in interface RawStorecatalogName - catalog the table is in.dbName - database the table is in.tableName - table name.writeIdList - string format of valid writeId transaction listMetaException - something went wrong in the RDBMSpublic List<String> getTables(String catName, String dbName, String pattern) throws MetaException
RawStoregetTables in interface RawStorecatName - catalog to search indbName - database to search inpattern - pattern to matchMetaException - failure in querying the RDBMSpublic List<String> getTables(String catName, String dbName, String pattern, TableType tableType, int limit) throws MetaException
RawStoregetTables in interface RawStorecatName - catalog to search indbName - database to search inpattern - pattern to matchtableType - type of table to look forlimit - Maximum number of tables to return (undeterministic set)MetaException - failure in querying the RDBMSpublic List<TableName> getTableNamesWithStats() throws MetaException, NoSuchObjectException
getTableNamesWithStats in interface RawStoreMetaExceptionNoSuchObjectExceptionpublic Map<String,List<String>> getPartitionColsWithStats(String catName, String dbName, String tableName) throws MetaException, NoSuchObjectException
getPartitionColsWithStats in interface RawStoreMetaExceptionNoSuchObjectExceptionpublic List<TableName> getAllTableNamesForStats() throws MetaException, NoSuchObjectException
getAllTableNamesForStats in interface RawStoreMetaExceptionNoSuchObjectExceptionprotected List<String> getTablesInternal(String catName, String dbName, String pattern, TableType tableType, boolean allowSql, boolean allowJdo, int limit) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic List<Table> getAllMaterializedViewObjectsForRewriting(String catName) throws MetaException
RawStoregetAllMaterializedViewObjectsForRewriting in interface RawStoreMetaException - error querying the RDBMSpublic List<String> getMaterializedViewsForRewriting(String catName, String dbName) throws MetaException, NoSuchObjectException
RawStoregetMaterializedViewsForRewriting in interface RawStorecatName - catalog namedbName - database nameMetaException - error querying the RDBMSNoSuchObjectException - no such databasepublic int getDatabaseCount()
throws MetaException
RawStoregetDatabaseCount in interface RawStoreMetaExceptionpublic int getPartitionCount()
throws MetaException
RawStoregetPartitionCount in interface RawStoreMetaExceptionpublic int getTableCount()
throws MetaException
RawStoregetTableCount in interface RawStoreMetaExceptionpublic List<TableMeta> getTableMeta(String catName, String dbNames, String tableNames, List<String> tableTypes) throws MetaException
getTableMeta in interface RawStorecatName - catalog name to search in. Search must be confined to one catalog.dbNames - databases to search in.tableNames - names of tables to select.tableTypes - types of tables to look for.MetaException - failure in querying the RDBMS.public List<String> getAllTables(String catName, String dbName) throws MetaException
RawStoregetAllTables in interface RawStorecatName - catalog name.dbName - database name.MetaException - failure in querying the RDBMS.public List<Table> getTableObjectsByName(String catName, String db, List<String> tbl_names, GetProjectionsSpec projectionSpec, String tablePattern) throws MetaException, UnknownDBException
getTableObjectsByName in interface RawStorecatName - catalog namedb - The name of the database from which to retrieve the tablestbl_names - The names of the tables to retrieve.projectionSpec - Projection Specification containing the columns that need to be returned.MetaException - failure in querying the RDBMS.UnknownDBExceptionpublic List<Table> getTableObjectsByName(String catName, String db, List<String> tbl_names) throws MetaException, UnknownDBException
getTableObjectsByName in interface RawStorecatName - catalog namedb - The name of the database from which to retrieve the tablestbl_names - The names of the tables to retrieve.MetaException - failure in querying the RDBMS.UnknownDBExceptionpublic boolean addPartitions(String catName, String dbName, String tblName, List<Partition> parts) throws InvalidObjectException, MetaException
RawStoreaddPartitions in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.parts - list of partitions to be added.InvalidObjectException - never throws this AFAICTMetaException - the partitions don't belong to the indicated table or error writing to
the RDBMS.public boolean addPartitions(String catName, String dbName, String tblName, PartitionSpecProxy partitionSpec, boolean ifNotExists) throws InvalidObjectException, MetaException
addPartitions in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.partitionSpec - specification for the partitionifNotExists - whether it is in an error if the partition already exists. If true, then
it is not an error if the partition exists, if false, it is.InvalidObjectException - The passed in partition spec or table specification is invalid.MetaException - error writing to RDBMS.public boolean addPartition(Partition part) throws InvalidObjectException, MetaException
RawStoreaddPartition in interface RawStorepart - partition to addInvalidObjectException - the provided partition object is not valid.MetaException - error writing to the RDBMS.public Partition getPartition(String catName, String dbName, String tableName, List<String> part_vals) throws NoSuchObjectException, MetaException
RawStoregetPartition in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.part_vals - partition values for this table.NoSuchObjectException - no partition matching this specification exists.MetaException - error reading from RDBMS.public Partition getPartition(String catName, String dbName, String tableName, List<String> part_vals, String validWriteIds) throws NoSuchObjectException, MetaException
RawStoregetPartition in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.part_vals - partition values for this table.validWriteIds - string format of valid writeId transaction listNoSuchObjectException - no partition matching this specification exists.MetaException - error reading from RDBMS.public boolean dropPartition(String catName, String dbName, String tableName, List<String> part_vals) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
RawStoredropPartition in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.part_vals - list of partition values.MetaException - Error accessing the RDBMS.NoSuchObjectException - no partition matching this description existsInvalidObjectException - error dropping the statistics for the partitionInvalidInputException - error dropping the statistics for the partitionpublic boolean dropPartition(String catName, String dbName, String tableName, String partName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
RawStoredropPartition in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.partName - partition name.MetaException - Error accessing the RDBMS.NoSuchObjectException - no partition matching this description existsInvalidObjectException - error dropping the statistics for the partitionInvalidInputException - error dropping the statistics for the partitionpublic void dropPartitions(String catName, String dbName, String tblName, List<String> partNames) throws MetaException, NoSuchObjectException
RawStoredropPartitions in interface RawStorecatName - catalog name.dbName - database name.tblName - table namepartNames - list of partition names.MetaException - error access RDBMS or storage.NoSuchObjectException - One or more of the partitions does not exist.public List<Partition> getPartitions(String catName, String dbName, String tableName, GetPartitionsArgs args) throws MetaException, NoSuchObjectException
RawStoregetPartitions in interface RawStorecatName - catalog name.dbName - database name.tableName - table nameargs - additional arguments for getting partitionsMetaException - error access the RDBMS.NoSuchObjectException - no such table existspublic Map<String,String> getPartitionLocations(String catName, String dbName, String tblName, String baseLocationToNotShow, int max)
RawStoregetPartitionLocations in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.baseLocationToNotShow - Partition locations which are child of this path are omitted, and
null value returned instead.max - The maximum number of partition locations returned, or -1 for allprotected List<Partition> getPartitionsInternal(String catName, String dbName, String tblName, boolean allowSql, boolean allowJdo, GetPartitionsArgs args) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic Partition getPartitionWithAuth(String catName, String dbName, String tblName, List<String> partVals, String user_name, List<String> group_names) throws NoSuchObjectException, MetaException, InvalidObjectException
RawStoregetPartitionWithAuth in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.partVals - partition valuesuser_name - user to get privilege information for.group_names - groups to get privilege information for.NoSuchObjectException - no such partition existsMetaException - error accessing the RDBMS.InvalidObjectException - error fetching privilege informationpublic List<String> listPartitionNames(String catName, String dbName, String tableName, short max) throws MetaException
RawStorelistPartitionNames in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.max - maximum number of partitions to retrieve, -1 for all.MetaException - there was an error accessing the RDBMSpublic List<String> listPartitionNames(String catName, String dbName, String tblName, String defaultPartName, byte[] exprBytes, String order, short maxParts) throws MetaException, NoSuchObjectException
RawStorelistPartitionNames in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.defaultPartName - default partition name.exprBytes - expression for filtering resulting list, serialized from ExprNodeDesc.order - ordered the resulting list.maxParts - maximum number of partitions to retrieve, -1 for all.MetaException - there was an error accessing the RDBMSNoSuchObjectExceptionpublic PartitionValuesResponse listPartitionValues(String catName, String dbName, String tableName, List<FieldSchema> cols, boolean applyDistinct, String filter, boolean ascending, List<FieldSchema> order, long maxParts) throws MetaException
RawStorelistPartitionValues in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.cols - partition key columnsapplyDistinct - whether to apply distinct to the listfilter - filter to apply to the partition namesascending - whether to put in ascending orderorder - whether to ordermaxParts - maximum number of parts to return, or -1 for allMetaException - error access the RDBMSpublic int getNumPartitionsByPs(String catName, String dbName, String tblName, List<String> partVals) throws MetaException, NoSuchObjectException
RawStoregetNumPartitionsByPs in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.partVals - A partial list of values for partitions in order of the table's partition keys.
Entries can be empty if you need to specify latter partitions.MetaException - error accessing the RDBMS or working with the specification.NoSuchObjectException - no such table.public List<Partition> listPartitionsPsWithAuth(String catName, String db_name, String tbl_name, GetPartitionsArgs args) throws MetaException, InvalidObjectException, NoSuchObjectException
RawStorelistPartitionsPsWithAuth in interface RawStorecatName - catalog name.db_name - The name of the database which has the partitionstbl_name - The name of the table which has the partitionsargs - additional arguments for getting partitionsMetaException - error access RDBMSInvalidObjectException - error access privilege informationNoSuchObjectException - No such table existspublic List<String> listPartitionNamesPs(String catName, String dbName, String tableName, List<String> part_vals, short max_parts) throws MetaException, NoSuchObjectException
RawStorelistPartitionNamesPs in interface RawStorecatName - catalog name.dbName - The name of the database which has the partitionstableName - The name of the table which has the partitionspart_vals - A partial list of values for partitions in order of the table's partition keys.
Entries can be empty if you only want to specify latter partitions.max_parts - The maximum number of partitions to returnMetaException - error accessing RDBMSNoSuchObjectException - No such table existspublic List<Partition> getPartitionsByNames(String catName, String dbName, String tblName, GetPartitionsArgs args) throws MetaException, NoSuchObjectException
RawStoregetPartitionsByNames in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.args - additional arguments for getting partitionsMetaException - error accessing the RDBMS.NoSuchObjectException - No such table.protected List<Partition> getPartitionsByNamesInternal(String catName, String dbName, String tblName, boolean allowSql, boolean allowJdo, GetPartitionsArgs args) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic boolean getPartitionsByExpr(String catName, String dbName, String tblName, List<Partition> result, GetPartitionsArgs args) throws org.apache.thrift.TException
RawStoregetPartitionsByExpr in interface RawStorecatName - catalog name.dbName - database nametblName - table nameargs - additional arguments for getting partitionsorg.apache.thrift.TException - error executing the expressionprotected boolean getPartitionsByExprInternal(String catName, String dbName, String tblName, List<Partition> result, boolean allowSql, boolean allowJdo, GetPartitionsArgs args) throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic List<Partition> getPartitionsByFilter(String catName, String dbName, String tblName, GetPartitionsArgs args) throws MetaException, NoSuchObjectException
RawStoregetPartitionsByFilter in interface RawStorecatName - catalog namedbName - database nametblName - table nameargs - additional arguments for getting partitionsMetaException - Error accessing the RDBMS or processing the filter.NoSuchObjectException - no such table.public int getNumPartitionsByFilter(String catName, String dbName, String tblName, String filter) throws MetaException, NoSuchObjectException
RawStoregetNumPartitionsByFilter in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.filter - filter from Hive's SQL where clauseMetaException - error accessing the RDBMS or executing the filterNoSuchObjectException - no such tablepublic int getNumPartitionsByExpr(String catName, String dbName, String tblName, byte[] expr) throws MetaException, NoSuchObjectException
RawStoregetNumPartitionsByExpr in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.expr - an already parsed Hive expressionMetaException - error accessing the RDBMS or working with the expression.NoSuchObjectException - no such table.protected List<Partition> getPartitionsByFilterInternal(String catName, String dbName, String tblName, boolean allowSql, boolean allowJdo, GetPartitionsArgs args) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic List<Partition> getPartitionSpecsByFilterAndProjection(Table table, GetProjectionsSpec partitionsProjectSpec, GetPartitionsFilterSpec filterSpec) throws MetaException, NoSuchObjectException
RawStoregetPartitionSpecsByFilterAndProjection in interface RawStoretable - table for which whose partitions are requested
* @param table table for which partitions are requestedpartitionsProjectSpec - the projection spec from the GetPartitionsRequest
This projection spec includes a fieldList which represents the fields which must be returned.
Any other field which is not in the fieldList may be unset in the returned
partitions (it is up to the implementation to decide whether it chooses to
include or exclude such fields). E.g. setting the field list to sd.location,
serdeInfo.name, sd.cols.name, sd.cols.type will
return partitions which will have location field set in the storage descriptor.
Also the serdeInf in the returned storage descriptor will only have name field
set. This applies to multi-valued fields as well like sd.cols, so in the
example above only name and type fields will be set for sd.cols.
If the fieldList is empty or not present, all the fields will be set.
Additionally, it also includes a includeParamKeyPattern and excludeParamKeyPattern
which is a SQL-92 compliant regex pattern to include or exclude parameters. The paramKeyPattern
supports _ or % wildcards which represent one character and 0 or more characters respectivelyfilterSpec - The filter spec from GetPartitionsRequest which includes the filter mode
and the list of filter strings. The filter mode could be BY_NAMES, BY_VALUES or BY_EXPR
to filter by partition names, partition values or expression. The filter strings are provided
in the list of filters within the filterSpec. When more than one filters are provided in the list
they are logically AND togetherMetaException - in case of errorsNoSuchObjectException - when table isn't foundpublic MTable ensureGetMTable(String catName, String dbName, String tblName) throws NoSuchObjectException
ensureGetMTable in interface RawStoredbName - Database name.tblName - Table name.NoSuchObjectExceptionpublic List<String> listTableNamesByFilter(String catName, String dbName, String filter, short maxTables) throws MetaException
RawStorelistTableNamesByFilter in interface RawStorecatName - catalog namedbName - The name of the database from which you will retrieve the table namesfilter - The filter stringmaxTables - The maximum number of tables returnedMetaExceptionpublic Table alterTable(String catName, String dbname, String name, Table newTable, String queryValidWriteIds) throws InvalidObjectException, MetaException
RawStorealterTable in interface RawStorecatName - catalog the table is in.dbname - database the table is in.name - name of the table.newTable - New table object. Which parts of the table can be altered are
implementation specific.InvalidObjectException - The new table object is invalid.MetaException - something went wrong, usually in the RDBMS or storage.public static String verifyStatsChangeCtx(String fullTableName, Map<String,String> oldP, Map<String,String> newP, long writeId, String validWriteIds, boolean isColStatsChange)
public void updateCreationMetadata(String catName, String dbname, String tablename, CreationMetadata cm) throws MetaException
RawStoreupdateCreationMetadata in interface RawStorecatName - catalog name.dbname - database name.tablename - table name.cm - new creation metadataMetaException - error accessing the RDBMS.public Partition alterPartition(String catName, String dbname, String name, List<String> part_vals, Partition newPart, String validWriteIds) throws InvalidObjectException, MetaException
RawStorealterPartition in interface RawStorecatName - catalog name.dbname - database name.name - table name.part_vals - partition values that describe the partition.newPart - new partition object. This should be a complete copy of the old with
changes values, not just the parts to update.InvalidObjectException - No such partition.MetaException - error accessing the RDBMS.public List<Partition> alterPartitions(String catName, String dbName, String tblName, List<List<String>> part_vals, List<Partition> newParts, long writeId, String queryWriteIdList) throws InvalidObjectException, MetaException
RawStorealterPartitions in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.part_vals - list of list of partition values. Each outer list describes one
partition (with its list of partition values).newParts - list of new partitions. The order must match the old partitions described in
part_vals_list. Each of these should be a complete copy of the new
partition, not just the pieces to update.writeId - write id of the transaction for the tablequeryWriteIdList - valid write id list of the transaction on the current tableInvalidObjectException - One of the indicated partitions does not exist.MetaException - error accessing the RDBMS.public List<SQLForeignKey> addForeignKeys(List<SQLForeignKey> fks) throws InvalidObjectException, MetaException
RawStoreaddForeignKeys in interface RawStorefks - foreign key specificationInvalidObjectException - the specification is malformed.MetaException - error accessing the RDBMS.public String getMetastoreDbUuid() throws MetaException
RawStoregetMetastoreDbUuid in interface RawStoreMetaExceptionpublic boolean runInTransaction(Runnable exec)
public boolean dropProperties(String key)
public MMetastoreDBProperties putProperties(String key, String value, String description, byte[] content)
public <T> T fetchProperties(String key, Function<MMetastoreDBProperties,T> transform)
public <T> Map<String,T> selectProperties(String key, Function<MMetastoreDBProperties,T> transform)
public List<SQLPrimaryKey> addPrimaryKeys(List<SQLPrimaryKey> pks) throws InvalidObjectException, MetaException
RawStoreaddPrimaryKeys in interface RawStorepks - Columns in the primary key.InvalidObjectException - The SQLPrimaryKeys list is malformedMetaException - error accessing the RDMBSpublic List<SQLUniqueConstraint> addUniqueConstraints(List<SQLUniqueConstraint> uks) throws InvalidObjectException, MetaException
RawStoreaddUniqueConstraints in interface RawStoreuks - unique constraints specificationInvalidObjectException - the specification is malformed.MetaException - error accessing the RDBMS.public List<SQLNotNullConstraint> addNotNullConstraints(List<SQLNotNullConstraint> nns) throws InvalidObjectException, MetaException
RawStoreaddNotNullConstraints in interface RawStorenns - not null constraint specificationsInvalidObjectException - the specification is malformed.MetaException - error accessing the RDBMS.public List<SQLDefaultConstraint> addDefaultConstraints(List<SQLDefaultConstraint> nns) throws InvalidObjectException, MetaException
RawStoreaddDefaultConstraints in interface RawStorenns - list of default valuesInvalidObjectException - the specification is malformed.MetaException - error accessing the RDBMS.public List<SQLCheckConstraint> addCheckConstraints(List<SQLCheckConstraint> nns) throws InvalidObjectException, MetaException
RawStoreaddCheckConstraints in interface RawStorenns - check constraints to addInvalidObjectException - the specification is malformedMetaException - error accessing the RDBMSpublic boolean addRole(String roleName, String ownerName) throws InvalidObjectException, MetaException, NoSuchObjectException
addRole in interface RawStoreInvalidObjectExceptionMetaExceptionNoSuchObjectExceptionpublic boolean grantRole(Role role, String userName, PrincipalType principalType, String grantor, PrincipalType grantorType, boolean grantOption) throws MetaException, NoSuchObjectException, InvalidObjectException
grantRole in interface RawStoreMetaExceptionNoSuchObjectExceptionInvalidObjectExceptionpublic boolean revokeRole(Role role, String userName, PrincipalType principalType, boolean grantOption) throws MetaException, NoSuchObjectException
revokeRole in interface RawStoreMetaExceptionNoSuchObjectExceptionpublic boolean removeRole(String roleName) throws MetaException, NoSuchObjectException
removeRole in interface RawStoreMetaExceptionNoSuchObjectExceptionpublic List<MRoleMap> listMRoles(String principalName, PrincipalType principalType)
public List<Role> listRoles(String principalName, PrincipalType principalType)
public List<RolePrincipalGrant> listRolesWithGrants(String principalName, PrincipalType principalType)
listRolesWithGrants in interface RawStorepublic Role getRole(String roleName) throws NoSuchObjectException
getRole in interface RawStoreNoSuchObjectExceptionpublic List<String> listRoleNames()
listRoleNames in interface RawStorepublic PrincipalPrivilegeSet getUserPrivilegeSet(String userName, List<String> groupNames) throws InvalidObjectException, MetaException
getUserPrivilegeSet in interface RawStoreInvalidObjectExceptionMetaExceptionpublic PrincipalPrivilegeSet getDBPrivilegeSet(String catName, String dbName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
RawStoregetDBPrivilegeSet in interface RawStorecatName - catalog namedbName - database nameuserName - user namegroupNames - list of groups the user is inInvalidObjectException - no such databaseMetaException - error accessing the RDBMSpublic PrincipalPrivilegeSet getConnectorPrivilegeSet(String catName, String connectorName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
RawStoregetConnectorPrivilegeSet in interface RawStorecatName - catalog nameconnectorName - connector nameuserName - user namegroupNames - list of groups the user is inInvalidObjectException - no such databaseMetaException - error accessing the RDBMSpublic PrincipalPrivilegeSet getPartitionPrivilegeSet(String catName, String dbName, String tableName, String partition, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
RawStoregetPartitionPrivilegeSet in interface RawStorecatName - catalog namedbName - database nametableName - table namepartition - partition nameuserName - user namegroupNames - list of groups the user is inInvalidObjectException - no such partitionMetaException - error accessing the RDBMSpublic PrincipalPrivilegeSet getTablePrivilegeSet(String catName, String dbName, String tableName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
RawStoregetTablePrivilegeSet in interface RawStorecatName - catalog namedbName - database nametableName - table nameuserName - user namegroupNames - list of groups the user is inInvalidObjectException - no such tableMetaException - error accessing the RDBMSpublic PrincipalPrivilegeSet getColumnPrivilegeSet(String catName, String dbName, String tableName, String partitionName, String columnName, String userName, List<String> groupNames) throws InvalidObjectException, MetaException
RawStoregetColumnPrivilegeSet in interface RawStorecatName - catalog namedbName - database nametableName - table namepartitionName - partition name, or null for table level column permissionscolumnName - column nameuserName - user namegroupNames - list of groups the user is inInvalidObjectException - no such table, partition, or columnMetaException - error accessing the RDBMSpublic boolean grantPrivileges(PrivilegeBag privileges) throws InvalidObjectException, MetaException, NoSuchObjectException
grantPrivileges in interface RawStoreInvalidObjectExceptionMetaExceptionNoSuchObjectExceptionpublic boolean revokePrivileges(PrivilegeBag privileges, boolean grantOption) throws InvalidObjectException, MetaException, NoSuchObjectException
revokePrivileges in interface RawStoreInvalidObjectExceptionMetaExceptionNoSuchObjectExceptionpublic boolean refreshPrivileges(HiveObjectRef objToRefresh, String authorizer, PrivilegeBag grantPrivileges) throws InvalidObjectException, MetaException, NoSuchObjectException
refreshPrivileges in interface RawStoreInvalidObjectExceptionMetaExceptionNoSuchObjectExceptionpublic List<RolePrincipalGrant> listRoleMembers(String roleName)
RawStorelistRoleMembers in interface RawStorepublic List<HiveObjectPrivilege> listPrincipalGlobalGrants(String principalName, PrincipalType principalType)
listPrincipalGlobalGrants in interface RawStorepublic List<HiveObjectPrivilege> listGlobalGrantsAll()
listGlobalGrantsAll in interface RawStorepublic List<HiveObjectPrivilege> listPrincipalDBGrants(String principalName, PrincipalType principalType, String catName, String dbName)
RawStorelistPrincipalDBGrants in interface RawStoreprincipalName - principal nameprincipalType - typecatName - catalog namedbName - database namepublic List<HiveObjectPrivilege> listPrincipalDBGrantsAll(String principalName, PrincipalType principalType)
RawStorelistPrincipalDBGrantsAll in interface RawStoreprincipalName - principal nameprincipalType - typepublic List<HiveObjectPrivilege> listDBGrantsAll(String catName, String dbName)
RawStorelistDBGrantsAll in interface RawStorecatName - catalog namedbName - database namepublic List<HiveObjectPrivilege> listPrincipalDCGrants(String principalName, PrincipalType principalType, String dcName)
RawStorelistPrincipalDCGrants in interface RawStoreprincipalName - principal nameprincipalType - typedcName - data connector namepublic List<HiveObjectPrivilege> listPrincipalDCGrantsAll(String principalName, PrincipalType principalType)
RawStorelistPrincipalDCGrantsAll in interface RawStoreprincipalName - principal nameprincipalType - typepublic List<HiveObjectPrivilege> listDCGrantsAll(String dcName)
RawStorelistDCGrantsAll in interface RawStoredcName - data connector namepublic List<HiveObjectPrivilege> listAllTableGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName)
RawStorelistAllTableGrants in interface RawStoreprincipalName - principal nameprincipalType - typecatName - catalog namedbName - database nametableName - table namepublic List<HiveObjectPrivilege> listPrincipalPartitionGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName, List<String> partValues, String partName)
RawStorelistPrincipalPartitionGrants in interface RawStoreprincipalName - principal nameprincipalType - typecatName - catalog namedbName - database nametableName - table namepartName - partition name (not value)public List<HiveObjectPrivilege> listPrincipalTableColumnGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName, String columnName)
RawStorelistPrincipalTableColumnGrants in interface RawStoreprincipalName - principal nameprincipalType - typecatName - catalog namedbName - database nametableName - table namecolumnName - column namepublic List<HiveObjectPrivilege> listPrincipalPartitionColumnGrants(String principalName, PrincipalType principalType, String catName, String dbName, String tableName, List<String> partValues, String partitionName, String columnName)
RawStorelistPrincipalPartitionColumnGrants in interface RawStoreprincipalName - principal nameprincipalType - typecatName - catalog namedbName - database nametableName - table namepartitionName - partition name (not value)columnName - column namepublic List<HiveObjectPrivilege> listPrincipalPartitionColumnGrantsAll(String principalName, PrincipalType principalType)
RawStorelistPrincipalPartitionColumnGrantsAll in interface RawStoreprincipalName - principal nameprincipalType - typepublic List<HiveObjectPrivilege> listPartitionColumnGrantsAll(String catName, String dbName, String tableName, String partitionName, String columnName)
RawStorelistPartitionColumnGrantsAll in interface RawStorecatName - catalog namedbName - database nametableName - table namepartitionName - partition name (not value)columnName - column namepublic List<HiveObjectPrivilege> listPrincipalTableGrantsAll(String principalName, PrincipalType principalType)
RawStorelistPrincipalTableGrantsAll in interface RawStoreprincipalName - principal nameprincipalType - typepublic List<HiveObjectPrivilege> listTableGrantsAll(String catName, String dbName, String tableName)
RawStorelistTableGrantsAll in interface RawStorecatName - catalog namedbName - database nametableName - table namepublic List<HiveObjectPrivilege> listPrincipalPartitionGrantsAll(String principalName, PrincipalType principalType)
RawStorelistPrincipalPartitionGrantsAll in interface RawStoreprincipalName - principal nameprincipalType - typepublic List<HiveObjectPrivilege> listPartitionGrantsAll(String catName, String dbName, String tableName, String partitionName)
RawStorelistPartitionGrantsAll in interface RawStorecatName - catalog namedbName - database nametableName - table namepartitionName - partition name (not value)public List<HiveObjectPrivilege> listPrincipalTableColumnGrantsAll(String principalName, PrincipalType principalType)
RawStorelistPrincipalTableColumnGrantsAll in interface RawStoreprincipalName - principal nameprincipalType - typepublic List<HiveObjectPrivilege> listTableColumnGrantsAll(String catName, String dbName, String tableName, String columnName)
RawStorelistTableColumnGrantsAll in interface RawStorecatName - catalog namedbName - database nametableName - table namecolumnName - column namepublic boolean isPartitionMarkedForEvent(String catName, String dbName, String tblName, Map<String,String> partName, PartitionEventType evtType) throws UnknownTableException, MetaException, InvalidPartitionException, UnknownPartitionException
isPartitionMarkedForEvent in interface RawStoreUnknownTableExceptionMetaExceptionInvalidPartitionExceptionUnknownPartitionExceptionpublic Table markPartitionForEvent(String catName, String dbName, String tblName, Map<String,String> partName, PartitionEventType evtType) throws MetaException, UnknownTableException, InvalidPartitionException, UnknownPartitionException
markPartitionForEvent in interface RawStoreMetaExceptionUnknownTableExceptionInvalidPartitionExceptionUnknownPartitionExceptionpublic Collection<?> executeJDOQLSelect(String queryStr) throws Exception
Exceptionpublic long executeJDOQLUpdate(String queryStr) throws Exception
Exceptionpublic Set<String> listFSRoots()
public ObjectStore.UpdateMDatabaseURIRetVal updateMDatabaseURI(URI oldLoc, URI newLoc, boolean dryRun)
public ObjectStore.UpdatePropURIRetVal updateTblPropURI(URI oldLoc, URI newLoc, String tblPropKey, boolean isDryRun)
@Deprecated public ObjectStore.UpdatePropURIRetVal updateMStorageDescriptorTblPropURI(URI oldLoc, URI newLoc, String tblPropKey, boolean isDryRun)
public ObjectStore.UpdateMStorageDescriptorTblURIRetVal updateMStorageDescriptorTblURI(URI oldLoc, URI newLoc, boolean isDryRun)
public ObjectStore.UpdateSerdeURIRetVal updateSerdeURI(URI oldLoc, URI newLoc, String serdeProp, boolean isDryRun)
public List<MetadataTableSummary> getMetadataSummary(String catalogFilter, String dbFilter, String tableFilter) throws SQLException
catalogFilter - the optional catalog name filterdbFilter - the optional database name filtertableFilter - the optional table name filterSQLExceptionpublic Map<String,String> updateTableColumnStatistics(ColumnStatistics colStats, String validWriteIds, long writeId) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
RawStoreupdateTableColumnStatistics in interface RawStorecolStats - object to persistNoSuchObjectException - No such table.MetaException - error accessing the RDBMS.InvalidObjectException - the stats object is invalidInvalidInputException - unable to record the stats for the tablepublic Map<String,String> updatePartitionColumnStatistics(Table table, MTable mTable, ColumnStatistics colStats, List<String> partVals, String validWriteIds, long writeId) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
updatePartitionColumnStatistics in interface RawStoreMetaExceptionNoSuchObjectExceptionInvalidObjectExceptionInvalidInputExceptionpublic Map<String,String> updatePartitionColumnStatistics(ColumnStatistics colStats, List<String> partVals, String validWriteIds, long writeId) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
RawStoreupdatePartitionColumnStatistics in interface RawStorecolStats - object to persistpartVals - partition values to persist the stats forMetaException - error accessing the RDBMS.NoSuchObjectException - No such table.InvalidObjectException - the stats object is invalidInvalidInputException - unable to record the stats for the tablepublic Map<String,Map<String,String>> updatePartitionColumnStatisticsInBatch(Map<String,ColumnStatistics> partColStatsMap, Table tbl, List<TransactionalMetaStoreEventListener> listeners, String validWriteIds, long writeId) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
updatePartitionColumnStatisticsInBatch in interface RawStoreNoSuchObjectExceptionMetaExceptionInvalidObjectExceptionInvalidInputExceptionpublic void validateTableCols(Table table, List<String> colNames) throws MetaException
MetaExceptionpublic List<ColumnStatistics> getTableColumnStatistics(String catName, String dbName, String tableName, List<String> colNames) throws MetaException, NoSuchObjectException
RawStoregetTableColumnStatistics in interface RawStorecatName - catalog name.dbName - name of the database, defaults to current databasetableName - name of the tablecolNames - names of the columns for which statistics is requestedMetaException - error accessing the RDBMSNoSuchObjectException - No such tablepublic ColumnStatistics getTableColumnStatistics(String catName, String dbName, String tableName, List<String> colNames, String engine) throws MetaException, NoSuchObjectException
RawStoregetTableColumnStatistics in interface RawStorecatName - catalog name.dbName - name of the database, defaults to current databasetableName - name of the tablecolNames - names of the columns for which statistics is requestedengine - engine requesting the statisticsMetaException - error accessing the RDBMSNoSuchObjectException - No such tablepublic ColumnStatistics getTableColumnStatistics(String catName, String dbName, String tableName, List<String> colNames, String engine, String writeIdList) throws MetaException, NoSuchObjectException
RawStoregetTableColumnStatistics in interface RawStorecatName - catalog name.dbName - name of the database, defaults to current databasetableName - name of the tablecolNames - names of the columns for which statistics is requestedengine - engine requesting the statisticswriteIdList - string format of valid writeId transaction listMetaException - error accessing the RDBMSNoSuchObjectException - No such tableprotected ColumnStatistics getTableColumnStatisticsInternal(String catName, String dbName, String tableName, List<String> colNames, String engine, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic List<List<ColumnStatistics>> getPartitionColumnStatistics(String catName, String dbName, String tableName, List<String> partNames, List<String> colNames) throws MetaException, NoSuchObjectException
RawStoregetPartitionColumnStatistics in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.partNames - list of partition names. These are names so must be key1=val1[/key2=val2...]colNames - list of columns to get stats forMetaException - error accessing the RDBMSNoSuchObjectException - no such partition.public List<ColumnStatistics> getPartitionColumnStatistics(String catName, String dbName, String tableName, List<String> partNames, List<String> colNames, String engine) throws MetaException, NoSuchObjectException
RawStoregetPartitionColumnStatistics in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.partNames - list of partition names. These are names so must be key1=val1[/key2=val2...]colNames - list of columns to get stats forengine - engine requesting the statisticsMetaException - error accessing the RDBMSNoSuchObjectException - no such partition.public List<ColumnStatistics> getPartitionColumnStatistics(String catName, String dbName, String tableName, List<String> partNames, List<String> colNames, String engine, String writeIdList) throws MetaException, NoSuchObjectException
RawStoregetPartitionColumnStatistics in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.partNames - list of partition names. These are names so must be key1=val1[/key2=val2...]colNames - list of columns to get stats forengine - engine requesting the statisticswriteIdList - string format of valid writeId transaction listMetaException - error accessing the RDBMSNoSuchObjectException - no such partition.protected List<ColumnStatistics> getPartitionColumnStatisticsInternal(String catName, String dbName, String tableName, List<String> partNames, List<String> colNames, String engine, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic AggrStats get_aggr_stats_for(String catName, String dbName, String tblName, List<String> partNames, List<String> colNames, String engine, String writeIdList) throws MetaException, NoSuchObjectException
RawStoreget_aggr_stats_for in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.partNames - list of partition names. These are the names of the partitions, not
values.colNames - list of column namesengine - engine requesting the statisticswriteIdList - string format of valid writeId transaction listMetaException - error accessing RDBMSNoSuchObjectException - no such table or partitionpublic AggrStats get_aggr_stats_for(String catName, String dbName, String tblName, List<String> partNames, List<String> colNames, String engine) throws MetaException, NoSuchObjectException
RawStoreget_aggr_stats_for in interface RawStorecatName - catalog name.dbName - database name.tblName - table name.partNames - list of partition names. These are the names of the partitions, not
values.colNames - list of column namesengine - engine requesting the statisticsMetaException - error accessing RDBMSNoSuchObjectException - no such table or partitionpublic List<MetaStoreServerUtils.ColStatsObjWithSourceInfo> getPartitionColStatsForDatabase(String catName, String dbName) throws MetaException, NoSuchObjectException
RawStoregetPartitionColStatsForDatabase in interface RawStorecatName - catalog namedbName - database nameMetaException - error accessing RDBMSNoSuchObjectException - no such databasepublic void flushCache()
flushCache in interface RawStorepublic void deleteAllPartitionColumnStatistics(TableName tn, String writeIdList)
deleteAllPartitionColumnStatistics in interface RawStorepublic boolean deletePartitionColumnStatistics(String catName, String dbName, String tableName, String partName, List<String> partVals, String colName, String engine) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
RawStoredeletePartitionColumnStatistics in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.partName - partition name.partVals - partition values.colName - column name.engine - engine for which we want to delete statisticsNoSuchObjectException - no such partitionMetaException - error access the RDBMSInvalidObjectException - error dropping the statsInvalidInputException - bad input, such as null table or database name.public boolean deleteTableColumnStatistics(String catName, String dbName, String tableName, String colName, String engine) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException
RawStoredeleteTableColumnStatistics in interface RawStorecatName - catalog namedbName - database nametableName - table namecolName - column name. Null to delete stats for all columns in the table.engine - engine for which we want to delete statisticsNoSuchObjectException - no such table or column.MetaException - error access the RDBMS.InvalidObjectException - error dropping the statsInvalidInputException - bad inputs, such as null table name.public long cleanupEvents()
cleanupEvents in interface RawStorepublic boolean removeToken(String tokenId)
removeToken in interface RawStorepublic List<String> getAllTokenIdentifiers()
getAllTokenIdentifiers in interface RawStorepublic int addMasterKey(String key) throws MetaException
addMasterKey in interface RawStoreMetaExceptionpublic void updateMasterKey(Integer id, String key) throws NoSuchObjectException, MetaException
updateMasterKey in interface RawStoreNoSuchObjectExceptionMetaExceptionpublic boolean removeMasterKey(Integer id)
removeMasterKey in interface RawStorepublic String[] getMasterKeys()
getMasterKeys in interface RawStorepublic void verifySchema()
throws MetaException
verifySchema in interface RawStoreMetaExceptionpublic static void setSchemaVerified(boolean val)
public String getMetaStoreSchemaVersion() throws MetaException
getMetaStoreSchemaVersion in interface RawStoreMetaExceptionpublic void setMetaStoreSchemaVersion(String schemaVersion, String comment) throws MetaException
setMetaStoreSchemaVersion in interface RawStoreMetaExceptionpublic boolean doesPartitionExist(String catName, String dbName, String tableName, List<FieldSchema> partKeys, List<String> partVals) throws MetaException
RawStoredoesPartitionExist in interface RawStorecatName - catalog name.dbName - database name.tableName - table name.partKeys - list of partition keys used to generate the partition name.partVals - list of partition values.MetaException - failure reading RDBMSpublic void createFunction(Function func) throws InvalidObjectException, MetaException
RawStorecreateFunction in interface RawStorefunc - function to createInvalidObjectException - incorrectly specified functionMetaException - error accessing the RDBMSpublic void alterFunction(String catName, String dbName, String funcName, Function newFunction) throws InvalidObjectException, MetaException
RawStorealterFunction in interface RawStoredbName - database namefuncName - function namenewFunction - new function specificationInvalidObjectException - no such function, or incorrectly specified new functionMetaException - incorrectly specified functionpublic void dropFunction(String catName, String dbName, String funcName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException
RawStoredropFunction in interface RawStoredbName - database namefuncName - function nameMetaException - incorrectly specified functionNoSuchObjectException - no such functionInvalidObjectException - not sure when this is thrownInvalidInputException - not sure when this is thrownpublic Function getFunction(String catName, String dbName, String funcName) throws MetaException
RawStoregetFunction in interface RawStoredbName - database namefuncName - function nameMetaException - incorrectly specified functionpublic List<Function> getAllFunctions(String catName) throws MetaException
RawStoregetAllFunctions in interface RawStoreMetaException - incorrectly specified functionprotected List<Function> getFunctionsInternal(String catalogName) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionpublic List<String> getFunctions(String catName, String dbName, String pattern) throws MetaException
RawStoregetFunctions in interface RawStoredbName - database namepattern - pattern to matchMetaException - incorrectly specified functionpublic void createOrUpdateStoredProcedure(StoredProcedure proc) throws NoSuchObjectException, MetaException
createOrUpdateStoredProcedure in interface RawStoreNoSuchObjectExceptionMetaExceptionpublic StoredProcedure getStoredProcedure(String catName, String db, String name) throws MetaException
getStoredProcedure in interface RawStoreMetaExceptionpublic void dropStoredProcedure(String catName, String dbName, String funcName) throws MetaException
dropStoredProcedure in interface RawStoreMetaExceptionpublic List<String> getAllStoredProcedures(ListStoredProcedureRequest request)
getAllStoredProcedures in interface RawStorepublic void addPackage(AddPackageRequest request) throws NoSuchObjectException, MetaException
addPackage in interface RawStoreNoSuchObjectExceptionMetaExceptionpublic Package findPackage(GetPackageRequest request)
findPackage in interface RawStorepublic List<String> listPackages(ListPackageRequest request)
listPackages in interface RawStorepublic void dropPackage(DropPackageRequest request)
dropPackage in interface RawStorepublic NotificationEventResponse getNextNotification(NotificationEventRequest rqst)
RawStoregetNextNotification in interface RawStorerqst - Request containing information on the last processed notification.public void cleanWriteNotificationEvents(int olderThan)
RawStorecleanWriteNotificationEvents in interface RawStoreolderThan - Remove any events older or equal to a given number of secondspublic List<WriteEventInfo> getAllWriteEventInfo(long txnId, String dbName, String tableName) throws MetaException
RawStoregetAllWriteEventInfo in interface RawStoretxnId - get all the events done by this transactiondbName - the name of db for which dump is being takentableName - the name of the table for which the dump is being takenMetaExceptionpublic void addNotificationEvent(NotificationEvent entry) throws MetaException
RawStoreaddNotificationEvent in interface RawStoreentry - the notification to addMetaException - error accessing RDBMSpublic void cleanNotificationEvents(int olderThan)
RawStorecleanNotificationEvents in interface RawStoreolderThan - Remove any events older or equal to a given number of secondspublic CurrentNotificationEventId getCurrentNotificationEventId()
RawStoregetCurrentNotificationEventId in interface RawStorepublic NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst)
RawStoregetNotificationEventsCount in interface RawStorepublic boolean isFileMetadataSupported()
isFileMetadataSupported in interface RawStorepublic ByteBuffer[] getFileMetadata(List<Long> fileIds)
getFileMetadata in interface RawStorefileIds - List of file IDs from the filesystem.public void putFileMetadata(List<Long> fileIds, List<ByteBuffer> metadata, FileMetadataExprType type)
putFileMetadata in interface RawStorefileIds - List of file IDs from the filesystem.metadata - Metadata buffers corresponding to fileIds in the list.type - The type; determines the class that can do additional processing for metadata.public void getFileMetadataByExpr(List<Long> fileIds, FileMetadataExprType type, byte[] expr, ByteBuffer[] metadatas, ByteBuffer[] stripeBitsets, boolean[] eliminated)
RawStoregetFileMetadataByExpr in interface RawStorefileIds - List of file IDs from the filesystem.type - Expression type; used to determine the class that handles the metadata.expr - Format-specific serialized expression applicable to the files' metadatas.metadatas - Output parameter; fileIds-sized array to receive the metadatas
for corresponding files, if any.stripeBitsets - Output parameter; fileIds-sized array to receive the format-specific
expression results for the corresponding files.eliminated - Output parameter; fileIds-sized array to receive the indication of whether
the corresponding files are entirely eliminated by the expression.public FileMetadataHandler getFileMetadataHandler(FileMetadataExprType type)
RawStoregetFileMetadataHandler in interface RawStorepublic List<SQLPrimaryKey> getPrimaryKeys(String catName, String db_name, String tbl_name) throws MetaException
RawStoregetPrimaryKeys in interface RawStorecatName - catalog namedb_name - database nametbl_name - table nameMetaException - error accessing the RDBMSpublic List<SQLPrimaryKey> getPrimaryKeys(PrimaryKeysRequest request) throws MetaException
RawStoregetPrimaryKeys in interface RawStorerequest - primary key requestMetaException - error accessing the RDBMSpublic List<SQLForeignKey> getForeignKeys(String catName, String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name) throws MetaException
RawStoregetForeignKeys in interface RawStorecatName - catalog name.parent_db_name - Database the table referred to is in. This can be null to match all
databases.parent_tbl_name - Table that is referred to. This can be null to match all tables.foreign_db_name - Database the table with the foreign key is in.foreign_tbl_name - Table with the foreign key.MetaException - error access the RDBMS.public List<SQLForeignKey> getForeignKeys(ForeignKeysRequest request) throws MetaException
RawStoregetForeignKeys in interface RawStorerequest - ForeignKeysRequest objectMetaException - error access the RDBMS.public List<SQLUniqueConstraint> getUniqueConstraints(String catName, String db_name, String tbl_name) throws MetaException
RawStoregetUniqueConstraints in interface RawStorecatName - catalog name.db_name - database name.tbl_name - table name.MetaException - error access the RDBMS.public List<SQLUniqueConstraint> getUniqueConstraints(UniqueConstraintsRequest request) throws MetaException
RawStoregetUniqueConstraints in interface RawStorerequest - UniqueConstraintsRequest object.MetaException - error access the RDBMS.public List<SQLNotNullConstraint> getNotNullConstraints(String catName, String db_name, String tbl_name) throws MetaException
RawStoregetNotNullConstraints in interface RawStorecatName - catalog name.db_name - database name.tbl_name - table name.MetaException - error accessing the RDBMS.public List<SQLNotNullConstraint> getNotNullConstraints(NotNullConstraintsRequest request) throws MetaException
RawStoregetNotNullConstraints in interface RawStorerequest - NotNullConstraintsRequest object.MetaException - error accessing the RDBMS.public List<SQLDefaultConstraint> getDefaultConstraints(String catName, String db_name, String tbl_name) throws MetaException
RawStoregetDefaultConstraints in interface RawStorecatName - catalog namedb_name - database nametbl_name - table nameMetaException - error accessing the RDBMSpublic List<SQLDefaultConstraint> getDefaultConstraints(DefaultConstraintsRequest request) throws MetaException
RawStoregetDefaultConstraints in interface RawStorerequest - DefaultConstraintsRequest object.MetaException - error accessing the RDBMSpublic List<SQLCheckConstraint> getCheckConstraints(String catName, String db_name, String tbl_name) throws MetaException
RawStoregetCheckConstraints in interface RawStorecatName - catalog name.db_name - database nametbl_name - table nameMetaException - error accessing the RDBMSpublic List<SQLCheckConstraint> getCheckConstraints(CheckConstraintsRequest request) throws MetaException
RawStoregetCheckConstraints in interface RawStorerequest - CheckConstraintsRequest object.MetaException - error accessing the RDBMSprotected List<SQLCheckConstraint> getCheckConstraintsInternal(String catName, String db_name_input, String tbl_name_input, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectExceptionprotected List<SQLNotNullConstraint> getNotNullConstraintsInternal(String catName, String db_name_input, String tbl_name_input, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException
MetaExceptionNoSuchObjectException@Deprecated public SQLAllTableConstraints getAllTableConstraints(String catName, String dbName, String tblName) throws MetaException, NoSuchObjectException
getAllTableConstraints in interface RawStorecatName - catalog namedbName - database nametblName - table nameMetaExceptionNoSuchObjectExceptionpublic SQLAllTableConstraints getAllTableConstraints(AllTableConstraintsRequest request) throws MetaException, NoSuchObjectException
getAllTableConstraints in interface RawStorerequest - request objectMetaExceptionNoSuchObjectExceptionpublic void dropConstraint(String catName, String dbName, String tableName, String constraintName, boolean missingOk) throws NoSuchObjectException
RawStoredropConstraint in interface RawStorecatName - catalog namedbName - database nametableName - table nameconstraintName - name of the constraintmissingOk - if true, it is not an error if there is no constraint of this name. If
false and there is no constraint of this name an exception will be thrown.NoSuchObjectException - no constraint of this name exists and missingOk = falsepublic void createISchema(ISchema schema) throws AlreadyExistsException, MetaException, NoSuchObjectException
RawStorecreateISchema in interface RawStoreschema - schema to createAlreadyExistsException - there's already a schema with this nameMetaException - general database exceptionNoSuchObjectExceptionpublic void alterISchema(ISchemaName schemaName, ISchema newSchema) throws NoSuchObjectException, MetaException
RawStorealterISchema in interface RawStoreschemaName - name of the schemanewSchema - new schema objectNoSuchObjectException - no function with this name existsMetaException - general database exceptionpublic ISchema getISchema(ISchemaName schemaName) throws MetaException
RawStoregetISchema in interface RawStoreschemaName - schema descriptorMetaException - general database exceptionpublic void dropISchema(ISchemaName schemaName) throws NoSuchObjectException, MetaException
RawStoredropISchema in interface RawStoreschemaName - schema descriptorNoSuchObjectException - no schema of this name existsMetaException - general database exceptionpublic void addSchemaVersion(SchemaVersion schemaVersion) throws AlreadyExistsException, NoSuchObjectException, MetaException
RawStoreaddSchemaVersion in interface RawStoreschemaVersion - version numberAlreadyExistsException - a version of the schema with the same version number already
exists.NoSuchObjectException - no schema with the passed in name exists.MetaException - general database exceptionpublic void alterSchemaVersion(SchemaVersionDescriptor version, SchemaVersion newVersion) throws NoSuchObjectException, MetaException
RawStorealterSchemaVersion in interface RawStoreversion - version descriptor for the schemanewVersion - altered SchemaVersionNoSuchObjectException - no such version of the named schema existsMetaException - general database exceptionpublic SchemaVersion getSchemaVersion(SchemaVersionDescriptor version) throws MetaException
RawStoregetSchemaVersion in interface RawStoreversion - version descriptor for the schemaMetaException - general database exceptionpublic SchemaVersion getLatestSchemaVersion(ISchemaName schemaName) throws MetaException
RawStoregetLatestSchemaVersion in interface RawStoreschemaName - name of the schemaMetaException - general database exceptionpublic List<SchemaVersion> getAllSchemaVersion(ISchemaName schemaName) throws MetaException
RawStoregetAllSchemaVersion in interface RawStoreschemaName - name of the schemaMetaException - general database exceptionpublic List<SchemaVersion> getSchemaVersionsByColumns(String colName, String colNamespace, String type) throws MetaException
RawStoregetSchemaVersionsByColumns in interface RawStorecolName - column name. Null is ok, which will cause this field to not be used in the
query.colNamespace - column namespace. Null is ok, which will cause this field to not be
used in the query.type - column type. Null is ok, which will cause this field to not be used in the
query.MetaException - general database exceptionpublic void dropSchemaVersion(SchemaVersionDescriptor version) throws NoSuchObjectException, MetaException
RawStoredropSchemaVersion in interface RawStoreversion - version descriptor for the schemaNoSuchObjectException - no such version of the named schema existsMetaException - general database exceptionpublic SerDeInfo getSerDeInfo(String serDeName) throws NoSuchObjectException, MetaException
RawStoregetSerDeInfo in interface RawStoreserDeName - name of the SerDeNoSuchObjectException - no serde with this name existsMetaException - general database exceptionpublic void addSerde(SerDeInfo serde) throws AlreadyExistsException, MetaException
RawStoreaddSerde in interface RawStoreserde - serde to addAlreadyExistsException - a serde of this name already existsMetaException - general database exceptionpublic void createResourcePlan(WMResourcePlan resourcePlan, String copyFromName, int defaultPoolSize) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException
createResourcePlan in interface RawStoreAlreadyExistsExceptionInvalidObjectExceptionMetaExceptionNoSuchObjectExceptionpublic WMFullResourcePlan getResourcePlan(String name, String ns) throws NoSuchObjectException
getResourcePlan in interface RawStoreNoSuchObjectExceptionpublic List<WMResourcePlan> getAllResourcePlans(String ns) throws MetaException
getAllResourcePlans in interface RawStoreMetaExceptionpublic WMFullResourcePlan alterResourcePlan(String name, String ns, WMNullableResourcePlan changes, boolean canActivateDisabled, boolean canDeactivate, boolean isReplace) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
alterResourcePlan in interface RawStoreAlreadyExistsExceptionNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic WMFullResourcePlan getActiveResourcePlan(String ns) throws MetaException
getActiveResourcePlan in interface RawStoreMetaExceptionpublic WMValidateResourcePlanResponse validateResourcePlan(String name, String ns) throws NoSuchObjectException, InvalidObjectException, MetaException
validateResourcePlan in interface RawStoreNoSuchObjectExceptionInvalidObjectExceptionMetaExceptionpublic void dropResourcePlan(String name, String ns) throws NoSuchObjectException, MetaException
dropResourcePlan in interface RawStoreNoSuchObjectExceptionMetaExceptionpublic void createWMTrigger(WMTrigger trigger) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
createWMTrigger in interface RawStoreAlreadyExistsExceptionNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void alterWMTrigger(WMTrigger trigger) throws NoSuchObjectException, InvalidOperationException, MetaException
alterWMTrigger in interface RawStoreNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void dropWMTrigger(String resourcePlanName, String triggerName, String ns) throws NoSuchObjectException, InvalidOperationException, MetaException
dropWMTrigger in interface RawStoreNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic List<WMTrigger> getTriggersForResourcePlan(String resourcePlanName, String ns) throws NoSuchObjectException, MetaException
getTriggersForResourcePlan in interface RawStoreNoSuchObjectExceptionMetaExceptionpublic void createPool(WMPool pool) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
createPool in interface RawStoreAlreadyExistsExceptionNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void alterPool(WMNullablePool pool, String poolPath) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
alterPool in interface RawStoreAlreadyExistsExceptionNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void dropWMPool(String resourcePlanName, String poolPath, String ns) throws NoSuchObjectException, InvalidOperationException, MetaException
dropWMPool in interface RawStoreNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void createOrUpdateWMMapping(WMMapping mapping, boolean update) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
createOrUpdateWMMapping in interface RawStoreAlreadyExistsExceptionNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void dropWMMapping(WMMapping mapping) throws NoSuchObjectException, InvalidOperationException, MetaException
dropWMMapping in interface RawStoreNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void createWMTriggerToPoolMapping(String resourcePlanName, String triggerName, String poolPath, String ns) throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException
createWMTriggerToPoolMapping in interface RawStoreAlreadyExistsExceptionNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void dropWMTriggerToPoolMapping(String resourcePlanName, String triggerName, String poolPath, String ns) throws NoSuchObjectException, InvalidOperationException, MetaException
dropWMTriggerToPoolMapping in interface RawStoreNoSuchObjectExceptionInvalidOperationExceptionMetaExceptionpublic void addRuntimeStat(RuntimeStat stat) throws MetaException
RawStoreaddRuntimeStat in interface RawStoreMetaExceptionpublic int deleteRuntimeStats(int maxRetainSecs)
throws MetaException
RawStoredeleteRuntimeStats in interface RawStoreMetaExceptionpublic List<RuntimeStat> getRuntimeStats(int maxEntries, int maxCreateTime) throws MetaException
RawStoregetRuntimeStats in interface RawStoreMetaExceptionpublic static boolean isCurrentStatsValidForTheQuery(Map<String,String> statsParams, long statsWriteId, String queryValidWriteIdList, boolean isCompleteStatsWriter) throws MetaException
MetaExceptionpublic ScheduledQueryPollResponse scheduledQueryPoll(ScheduledQueryPollRequest request) throws MetaException
RawStorescheduledQueryPoll in interface RawStoreMetaExceptionpublic void scheduledQueryProgress(ScheduledQueryProgressInfo info) throws InvalidOperationException, MetaException
RawStorescheduledQueryProgress in interface RawStoreInvalidOperationExceptionMetaExceptionpublic void addReplicationMetrics(ReplicationMetricList replicationMetricList)
RawStoreaddReplicationMetrics in interface RawStorepublic ReplicationMetricList getReplicationMetrics(GetReplicationMetricsRequest replicationMetricsRequest)
RawStoregetReplicationMetrics in interface RawStorepublic int deleteReplicationMetrics(int maxRetainSecs)
deleteReplicationMetrics in interface RawStorepublic void scheduledQueryMaintenance(ScheduledQueryMaintenanceRequest request) throws MetaException, NoSuchObjectException, AlreadyExistsException, InvalidInputException
RawStorescheduledQueryMaintenance in interface RawStoreMetaExceptionNoSuchObjectExceptionAlreadyExistsExceptionInvalidInputExceptionpublic void scheduledQueryInsert(ScheduledQuery scheduledQuery) throws NoSuchObjectException, AlreadyExistsException, InvalidInputException
public void scheduledQueryDelete(ScheduledQuery scheduledQuery) throws NoSuchObjectException, AlreadyExistsException
public void scheduledQueryUpdate(ScheduledQuery scheduledQuery) throws NoSuchObjectException, AlreadyExistsException, InvalidInputException
public ScheduledQuery getScheduledQuery(ScheduledQueryKey key) throws NoSuchObjectException
RawStoregetScheduledQuery in interface RawStoreNoSuchObjectException - if an object by the given name dosen't exists.public Optional<MScheduledQuery> getMScheduledQuery(ScheduledQueryKey key)
public int deleteScheduledExecutions(int maxRetainSecs)
deleteScheduledExecutions in interface RawStorepublic int markScheduledExecutionsTimedOut(int timeoutSecs)
throws InvalidOperationException,
MetaException
markScheduledExecutionsTimedOut in interface RawStoreInvalidOperationExceptionMetaExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.