Class AzureStorageProvider
java.lang.Object
org.elasticsearch.xpack.esql.datasource.azure.AzureStorageProvider
- All Implemented Interfaces:
Closeable,AutoCloseable,StorageProvider
StorageProvider implementation for Azure Blob Storage.
Supports the wasbs:// and wasb:// URI schemes.
URI format: wasbs://account.blob.core.windows.net/container/path/to/blob
- host: account.blob.core.windows.net (account name is first segment)
- path: /container/path/to/blob (first segment = container, remainder = blob name)
Authentication can be provided via connection string, account+key, SAS token, or DefaultAzureCredential when no explicit credentials are configured.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureStorageProvider(com.azure.storage.blob.BlobServiceClient blobServiceClient) Constructor for testing with a pre-built BlobServiceClient. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanexists(StoragePath path) listObjects(StoragePath prefix, boolean recursive) newObject(StoragePath path) newObject(StoragePath path, long length) newObject(StoragePath path, long length, Instant lastModified)
-
Constructor Details
-
AzureStorageProvider
-
AzureStorageProvider
public AzureStorageProvider(com.azure.storage.blob.BlobServiceClient blobServiceClient) Constructor for testing with a pre-built BlobServiceClient.
-
-
Method Details
-
newObject
- Specified by:
newObjectin interfaceStorageProvider
-
newObject
- Specified by:
newObjectin interfaceStorageProvider
-
newObject
- Specified by:
newObjectin interfaceStorageProvider
-
listObjects
- Specified by:
listObjectsin interfaceStorageProvider- Throws:
IOException
-
exists
- Specified by:
existsin interfaceStorageProvider- Throws:
IOException
-
supportedSchemes
- Specified by:
supportedSchemesin interfaceStorageProvider
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-