Class BaseRawStore

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.hadoop.hive.metastore.RawStore

        org.apache.hadoop.hive.metastore.RawStore.CanNotRetry
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.hadoop.conf.Configuration conf  
      protected org.apache.hadoop.hive.metastore.RawStore delegate  
      protected boolean hasDelegate  
      protected NessieStoreImpl nessie  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseRawStore​(boolean hasDelegate)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkHasDelegate()  
      boolean commitTransaction()  
      List<String> getCatalogs()
      Return list of available catalogs.
      org.apache.hadoop.conf.Configuration getConf()  
      String getMetastoreDbUuid()
      Metastore uuid.
      String getMetaStoreSchemaVersion()
      Metastore schema version report.
      String getRef()  
      boolean isActiveTransaction()  
      boolean openTransaction()  
      void rollbackTransaction()  
      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 boolean routeToDelegate​(Stream<String> databases)  
      void setConf​(org.apache.hadoop.conf.Configuration conf)  
      void shutdown()  
      protected static int union​(int i, int x)  
      protected static <T> List<T> union​(List<T> a, List<T> b)  
      • 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

      • delegate

        protected org.apache.hadoop.hive.metastore.RawStore delegate
      • hasDelegate

        protected boolean hasDelegate
      • conf

        protected org.apache.hadoop.conf.Configuration conf
    • Constructor Detail

      • BaseRawStore

        protected BaseRawStore​(boolean hasDelegate)
    • Method Detail

      • getConf

        public org.apache.hadoop.conf.Configuration getConf()
        Specified by:
        getConf in interface org.apache.hadoop.conf.Configurable
      • setConf

        public void setConf​(org.apache.hadoop.conf.Configuration conf)
        Specified by:
        setConf in interface org.apache.hadoop.conf.Configurable
      • union

        protected static int union​(int i,
                                   int x)
      • union

        protected static <T> List<T> union​(List<T> a,
                                           List<T> b)
      • route

        protected static Stream<String> route​(org.apache.hadoop.hive.metastore.api.Database db)
      • route

        protected static Stream<String> route​(org.apache.hadoop.hive.metastore.api.Table table)
      • 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)
      • route

        protected static Stream<String> route​(org.apache.hadoop.hive.metastore.api.SQLForeignKey c)
      • route

        protected static Stream<String> route​(org.apache.hadoop.hive.metastore.api.SQLPrimaryKey c)
      • routeToDelegate

        protected boolean routeToDelegate​(Stream<String> databases)
      • checkHasDelegate

        protected void checkHasDelegate()
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.apache.hadoop.hive.metastore.RawStore
      • openTransaction

        public boolean openTransaction()
        Specified by:
        openTransaction in interface org.apache.hadoop.hive.metastore.RawStore
      • commitTransaction

        public boolean commitTransaction()
        Specified by:
        commitTransaction in interface org.apache.hadoop.hive.metastore.RawStore
      • isActiveTransaction

        public boolean isActiveTransaction()
        Specified by:
        isActiveTransaction in interface org.apache.hadoop.hive.metastore.RawStore
      • rollbackTransaction

        public void rollbackTransaction()
        Specified by:
        rollbackTransaction in interface org.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:
        getCatalogs in interface org.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:
        getMetaStoreSchemaVersion in interface org.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:
        getMetastoreDbUuid in interface org.apache.hadoop.hive.metastore.RawStore
        Throws:
        org.apache.hadoop.hive.metastore.api.MetaException