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 Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.polaris.core.PolarisDiagnostics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbootstrapRealms(Iterable<String> realms, org.apache.polaris.core.persistence.bootstrap.RootCredentialsSet rootCredentialsSet) protected org.apache.polaris.core.persistence.PolarisMetaStoreManagerprotected DatabaseTypeorg.apache.polaris.core.persistence.cache.EntityCachegetOrCreateEntityCache(org.apache.polaris.core.context.RealmContext realmContext) org.apache.polaris.core.persistence.PolarisMetaStoreManagergetOrCreateMetaStoreManager(org.apache.polaris.core.context.RealmContext realmContext) Supplier<org.apache.polaris.core.persistence.BasePersistence> getOrCreateSessionSupplier(org.apache.polaris.core.context.RealmContext realmContext) org.apache.polaris.core.storage.cache.StorageCredentialCachegetOrCreateStorageCredentialCache(org.apache.polaris.core.context.RealmContext realmContext) purgeRealms(Iterable<String> realms) protected org.apache.polaris.core.persistence.PrincipalSecretsGeneratorsecretsGenerator(org.apache.polaris.core.context.RealmContext realmContext, org.apache.polaris.core.persistence.bootstrap.RootCredentialsSet rootCredentialsSet)
-
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
- 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:
bootstrapRealmsin interfaceorg.apache.polaris.core.persistence.MetaStoreManagerFactory
-
purgeRealms
public Map<String,org.apache.polaris.core.persistence.dao.entity.BaseResult> purgeRealms(Iterable<String> realms) - Specified by:
purgeRealmsin interfaceorg.apache.polaris.core.persistence.MetaStoreManagerFactory
-
getOrCreateMetaStoreManager
public org.apache.polaris.core.persistence.PolarisMetaStoreManager getOrCreateMetaStoreManager(org.apache.polaris.core.context.RealmContext realmContext) - Specified by:
getOrCreateMetaStoreManagerin interfaceorg.apache.polaris.core.persistence.MetaStoreManagerFactory
-
getOrCreateSessionSupplier
public Supplier<org.apache.polaris.core.persistence.BasePersistence> getOrCreateSessionSupplier(org.apache.polaris.core.context.RealmContext realmContext) - Specified by:
getOrCreateSessionSupplierin interfaceorg.apache.polaris.core.persistence.MetaStoreManagerFactory
-
getOrCreateStorageCredentialCache
public org.apache.polaris.core.storage.cache.StorageCredentialCache getOrCreateStorageCredentialCache(org.apache.polaris.core.context.RealmContext realmContext) - Specified by:
getOrCreateStorageCredentialCachein interfaceorg.apache.polaris.core.persistence.MetaStoreManagerFactory
-
getOrCreateEntityCache
public org.apache.polaris.core.persistence.cache.EntityCache getOrCreateEntityCache(org.apache.polaris.core.context.RealmContext realmContext) - Specified by:
getOrCreateEntityCachein interfaceorg.apache.polaris.core.persistence.MetaStoreManagerFactory
-