Class JdbcMetaStoreManagerFactory

java.lang.Object
org.apache.polaris.persistence.relational.jdbc.JdbcMetaStoreManagerFactory
All Implemented Interfaces:
org.apache.polaris.core.persistence.MetaStoreManagerFactory

@ApplicationScoped @Identifier("relational-jdbc") public class JdbcMetaStoreManagerFactory extends Object implements org.apache.polaris.core.persistence.MetaStoreManagerFactory
The implementation of Configuration interface for configuring the PolarisMetaStoreManager using a JDBC backed by SQL metastore. TODO: refactor - ...
  • Field Details

    • diagServices

      protected final org.apache.polaris.core.PolarisDiagnostics diagServices
  • Constructor Details

    • JdbcMetaStoreManagerFactory

      protected JdbcMetaStoreManagerFactory()
  • Method Details

    • secretsGenerator

      protected org.apache.polaris.core.persistence.PrincipalSecretsGenerator secretsGenerator(org.apache.polaris.core.context.RealmContext realmContext, @Nullable org.apache.polaris.core.persistence.bootstrap.RootCredentialsSet rootCredentialsSet)
    • createNewMetaStoreManager

      protected org.apache.polaris.core.persistence.PolarisMetaStoreManager createNewMetaStoreManager()
    • getDatabaseType

      protected DatabaseType getDatabaseType() throws SQLException
      Throws:
      SQLException
    • bootstrapRealms

      public Map<String,org.apache.polaris.core.persistence.dao.entity.PrincipalSecretsResult> bootstrapRealms(Iterable<String> realms, org.apache.polaris.core.persistence.bootstrap.RootCredentialsSet rootCredentialsSet)
      Specified by:
      bootstrapRealms in interface org.apache.polaris.core.persistence.MetaStoreManagerFactory
    • purgeRealms

      public Map<String,org.apache.polaris.core.persistence.dao.entity.BaseResult> purgeRealms(Iterable<String> realms)
      Specified by:
      purgeRealms in interface org.apache.polaris.core.persistence.MetaStoreManagerFactory
    • getOrCreateMetaStoreManager

      public org.apache.polaris.core.persistence.PolarisMetaStoreManager getOrCreateMetaStoreManager(org.apache.polaris.core.context.RealmContext realmContext)
      Specified by:
      getOrCreateMetaStoreManager in interface org.apache.polaris.core.persistence.MetaStoreManagerFactory
    • getOrCreateSessionSupplier

      public Supplier<org.apache.polaris.core.persistence.BasePersistence> getOrCreateSessionSupplier(org.apache.polaris.core.context.RealmContext realmContext)
      Specified by:
      getOrCreateSessionSupplier in interface org.apache.polaris.core.persistence.MetaStoreManagerFactory
    • getOrCreateStorageCredentialCache

      public org.apache.polaris.core.storage.cache.StorageCredentialCache getOrCreateStorageCredentialCache(org.apache.polaris.core.context.RealmContext realmContext)
      Specified by:
      getOrCreateStorageCredentialCache in interface org.apache.polaris.core.persistence.MetaStoreManagerFactory
    • getOrCreateEntityCache

      public org.apache.polaris.core.persistence.cache.EntityCache getOrCreateEntityCache(org.apache.polaris.core.context.RealmContext realmContext)
      Specified by:
      getOrCreateEntityCache in interface org.apache.polaris.core.persistence.MetaStoreManagerFactory