public class StorageClientFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
SnowflakeStorageClient |
createClient(String stageLocationType,
Map stageCredentials,
int parallel,
net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat,
String stageRegion)
Creates a storage client based on the value of stageLocationType
|
StorageObjectMetadata |
createStorageMetadataObj(String stageLocationType)
Creates a storage provider specific metadata object,
accessible via the platform independent interface
|
static StorageClientFactory |
getFactory()
Creates or returns the single instance of the factory object
|
public static StorageClientFactory getFactory()
public SnowflakeStorageClient createClient(String stageLocationType, Map stageCredentials, int parallel, net.snowflake.common.core.RemoteStoreFileEncryptionMaterial encMat, String stageRegion) throws SnowflakeSQLException
stageLocationType - The type of the stage, e.g. "S3"stageCredentials - Map of stage credential propertiesparallel - the degree of parallelism to be used by the clientencMat - encryption material for the clientstageRegion - the region where our stage is locatedSnowflakeSQLException - if any error occurspublic StorageObjectMetadata createStorageMetadataObj(String stageLocationType)
stageLocationType - determines the implementation to be createdCopyright © 2017. All rights reserved.