Package com.dremio.nessie.hms
Class BaseRawStore
- java.lang.Object
-
- com.dremio.nessie.hms.BaseRawStore
-
- All Implemented Interfaces:
RawStoreWithRef,org.apache.hadoop.conf.Configurable,org.apache.hadoop.hive.metastore.RawStore
- Direct Known Subclasses:
BaseRawStore3
public abstract class BaseRawStore extends Object implements RawStoreWithRef
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.hadoop.conf.Configurationconfprotected org.apache.hadoop.hive.metastore.RawStoredelegateprotected booleanhasDelegateprotected NessieStoreImplnessie
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseRawStore(boolean hasDelegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckHasDelegate()booleancommitTransaction()List<String>getCatalogs()Return list of available catalogs.org.apache.hadoop.conf.ConfigurationgetConf()StringgetMetastoreDbUuid()Metastore uuid.StringgetMetaStoreSchemaVersion()Metastore schema version report.StringgetRef()booleanisActiveTransaction()booleanopenTransaction()voidrollbackTransaction()protected static Stream<String>route(String s)protected static Stream<String>route(org.apache.hadoop.hive.metastore.api.ColumnStatistics s)protected static Stream<String>route(org.apache.hadoop.hive.metastore.api.Database db)protected static Stream<String>route(Index i)protected static Stream<String>route(org.apache.hadoop.hive.metastore.api.Partition partition)protected static Stream<String>route(org.apache.hadoop.hive.metastore.api.SQLForeignKey c)protected static Stream<String>route(org.apache.hadoop.hive.metastore.api.SQLPrimaryKey c)protected static Stream<String>route(org.apache.hadoop.hive.metastore.api.Table table)protected booleanrouteToDelegate(Stream<String> databases)voidsetConf(org.apache.hadoop.conf.Configuration conf)voidshutdown()protected static intunion(int i, int x)protected static <T> List<T>union(List<T> a, List<T> b)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hadoop.hive.metastore.RawStore
addCheckConstraints, addDefaultConstraints, addForeignKeys, addMasterKey, addNotificationEvent, addNotNullConstraints, addPartition, addPartitions, addPartitions, addPrimaryKeys, addRole, addRuntimeStat, addSchemaVersion, addSerde, addToken, addUniqueConstraints, alterCatalog, alterDatabase, alterFunction, alterISchema, alterPartition, alterPartitions, alterPool, alterResourcePlan, alterSchemaVersion, alterTable, alterWMTrigger, cleanNotificationEvents, cleanupEvents, createCatalog, createDatabase, createFunction, createISchema, createOrUpdateWMMapping, createPool, createResourcePlan, createTable, createTableWithConstraints, createType, createWMTrigger, createWMTriggerToPoolMapping, deletePartitionColumnStatistics, deleteRuntimeStats, deleteTableColumnStatistics, doesPartitionExist, dropCatalog, dropConstraint, dropConstraint, dropDatabase, dropFunction, dropISchema, dropPartition, dropPartitions, dropResourcePlan, dropSchemaVersion, dropTable, dropType, dropWMMapping, dropWMPool, dropWMTrigger, dropWMTriggerToPoolMapping, flushCache, get_aggr_stats_for, getActiveResourcePlan, getAllDatabases, getAllFunctions, getAllResourcePlans, getAllSchemaVersion, getAllTableNamesForStats, getAllTables, getAllTokenIdentifiers, getCatalog, getCheckConstraints, getColumnPrivilegeSet, getCurrentNotificationEventId, getDatabase, getDatabaseCount, getDatabases, getDBPrivilegeSet, getDefaultConstraints, getFileMetadata, getFileMetadataByExpr, getFileMetadataHandler, getForeignKeys, getFunction, getFunctions, getISchema, getLatestSchemaVersion, getMasterKeys, getMaterializedViewsForRewriting, getNextNotification, getNotificationEventsCount, getNotNullConstraints, getNumPartitionsByExpr, getNumPartitionsByFilter, getPartition, getPartitionColStatsForDatabase, getPartitionColsWithStats, getPartitionColumnStatistics, getPartitionCount, getPartitionPrivilegeSet, getPartitions, getPartitionsByExpr, getPartitionsByFilter, getPartitionsByNames, getPartitionsWithAuth, getPartitionWithAuth, getPrimaryKeys, getResourcePlan, getRole, getRuntimeStats, getSchemaVersion, getSchemaVersionsByColumns, getSerDeInfo, getTable, getTableColumnStatistics, getTableCount, getTableMeta, getTableNamesWithStats, getTableObjectsByName, getTablePrivilegeSet, getTables, getTables, getToken, getTriggersForResourcePlan, getType, getUniqueConstraints, getUserPrivilegeSet, grantPrivileges, grantRole, isFileMetadataSupported, isPartitionMarkedForEvent, listAllTableGrants, listDBGrantsAll, listGlobalGrantsAll, listPartitionColumnGrantsAll, listPartitionGrantsAll, listPartitionNames, listPartitionNamesPs, listPartitionsPsWithAuth, listPartitionValues, listPrincipalDBGrants, listPrincipalDBGrantsAll, listPrincipalGlobalGrants, listPrincipalPartitionColumnGrants, listPrincipalPartitionColumnGrantsAll, listPrincipalPartitionGrants, listPrincipalPartitionGrantsAll, listPrincipalTableColumnGrants, listPrincipalTableColumnGrantsAll, listPrincipalTableGrantsAll, listRoleMembers, listRoleNames, listRoles, listRolesWithGrants, listTableColumnGrantsAll, listTableGrantsAll, listTableNamesByFilter, markPartitionForEvent, putFileMetadata, refreshPrivileges, removeMasterKey, removeRole, removeToken, revokePrivileges, revokeRole, setMetaStoreSchemaVersion, updateCreationMetadata, updateMasterKey, updatePartitionColumnStatistics, updateTableColumnStatistics, validateResourcePlan, verifySchema
-
-
-
-
Field Detail
-
nessie
protected NessieStoreImpl nessie
-
delegate
protected org.apache.hadoop.hive.metastore.RawStore delegate
-
hasDelegate
protected boolean hasDelegate
-
conf
protected org.apache.hadoop.conf.Configuration conf
-
-
Method Detail
-
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getRef
public String getRef()
- Specified by:
getRefin interfaceRawStoreWithRef
-
union
protected static int union(int i, int x)
-
route
protected static Stream<String> route(org.apache.hadoop.hive.metastore.api.Partition partition)
-
route
protected static Stream<String> route(org.apache.hadoop.hive.metastore.api.ColumnStatistics s)
-
checkHasDelegate
protected void checkHasDelegate()
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.apache.hadoop.hive.metastore.RawStore
-
openTransaction
public boolean openTransaction()
- Specified by:
openTransactionin interfaceorg.apache.hadoop.hive.metastore.RawStore
-
commitTransaction
public boolean commitTransaction()
- Specified by:
commitTransactionin interfaceorg.apache.hadoop.hive.metastore.RawStore
-
isActiveTransaction
public boolean isActiveTransaction()
- Specified by:
isActiveTransactionin interfaceorg.apache.hadoop.hive.metastore.RawStore
-
rollbackTransaction
public void rollbackTransaction()
- Specified by:
rollbackTransactionin interfaceorg.apache.hadoop.hive.metastore.RawStore
-
getCatalogs
public List<String> getCatalogs() throws org.apache.hadoop.hive.metastore.api.MetaException
Return list of available catalogs.- Specified by:
getCatalogsin interfaceorg.apache.hadoop.hive.metastore.RawStore- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getMetaStoreSchemaVersion
public String getMetaStoreSchemaVersion() throws org.apache.hadoop.hive.metastore.api.MetaException
Metastore schema version report.- Specified by:
getMetaStoreSchemaVersionin interfaceorg.apache.hadoop.hive.metastore.RawStore- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
getMetastoreDbUuid
public String getMetastoreDbUuid() throws org.apache.hadoop.hive.metastore.api.MetaException
Metastore uuid.- Specified by:
getMetastoreDbUuidin interfaceorg.apache.hadoop.hive.metastore.RawStore- Throws:
org.apache.hadoop.hive.metastore.api.MetaException
-
-