Class StorageClientFactory


  • public class StorageClientFactory
    extends Object
    Factory object for abstracting the creation of storage client objects: SnowflakeStorageClient and StorageObjectMetadata
    Author:
    lgiakoumakis
    • Method Detail

      • getFactory

        public static StorageClientFactory getFactory()
        Creates or returns the single instance of the factory object
        Returns:
        the storage client instance
      • createClient

        public SnowflakeStorageClient createClient​(StageInfo stage,
                                                   int parallel,
                                                   net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
                                                   SFSession session)
                                            throws SnowflakeSQLException
        Creates a storage client based on the value of stageLocationType
        Parameters:
        stage - the stage properties
        parallel - the degree of parallelism to be used by the client
        encMat - encryption material for the client
        Returns:
        a SnowflakeStorageClient interface to the instance created
        Throws:
        SnowflakeSQLException - if any error occurs
      • createStorageMetadataObj

        public StorageObjectMetadata createStorageMetadataObj​(StageInfo.StageType stageType)
        Creates a storage provider specific metadata object, accessible via the platform independent interface
        Parameters:
        stageType - determines the implementation to be created
        Returns:
        the implementation of StorageObjectMetadata