Class PersistenceConfigurer

java.lang.Object
org.apache.polaris.persistence.nosql.standalone.PersistenceConfigurer

public class PersistenceConfigurer extends Object
Leverages smallrye-config to get a BackendConfiguration instance populated with the necessary settings to build a Backend instance.

defaultBackendConfigurer() is especially useful in standalone runnable Java code like JMH based benchmarks and in the manually run correctness tests.

  • Method Details

    • buildBackendFactory

      public <RUNTIME_CONFIG, CONFIG_INTERFACE> org.apache.polaris.persistence.nosql.api.backend.BackendFactory<RUNTIME_CONFIG,CONFIG_INTERFACE> buildBackendFactory()
    • buildBackendFromConfiguration

      public org.apache.polaris.persistence.nosql.api.backend.Backend buildBackendFromConfiguration(org.apache.polaris.persistence.nosql.api.backend.BackendFactory factory)
    • defaultBackendConfigurer

      public static PersistenceConfigurer defaultBackendConfigurer()
      Sets up a default PersistenceConfigurer instance that uses smallrye-config default sources, which include environment variables and Java system properties as config sources.
    • backendConfigurer

      public static PersistenceConfigurer backendConfigurer(Map<String,String> configMap)