Class RemoteStorageEnvLocator

  • All Implemented Interfaces:
    PhoenixRemoteStorage, java.util.function.Supplier<com.c12e.cortex.phoenix.ObjectStorageConfig>

    public class RemoteStorageEnvLocator
    extends java.lang.Object
    implements PhoenixRemoteStorage
    Provide remote storage configuration for Cortex. Options are taken from Spark config properties with environment variables applied as overrides if set. Refer to the static fields of PhoenixRemoteStorage.
    • Field Detail

      • logger

        protected org.slf4j.Logger logger
    • Constructor Detail

      • RemoteStorageEnvLocator

        @Inject
        public RemoteStorageEnvLocator​(java.util.Map<java.lang.String,​java.lang.String> sessionOptions,
                                       CortexRemoteStorageClient storageClient)
    • Method Detail

      • getOrDefault

        protected <T> T getOrDefault​(java.util.function.Supplier<T> function,
                                     T defaultValue)
      • getConnectionType

        protected com.c12e.cortex.phoenix.spec.ConnectionType getConnectionType()
      • get

        public com.c12e.cortex.phoenix.ObjectStorageConfig get()
        Specified by:
        get in interface java.util.function.Supplier<com.c12e.cortex.phoenix.ObjectStorageConfig>