public class BlobManagerImpl extends Object implements BlobManager
| Constructor and Description |
|---|
BlobManagerImpl(StorageStub stub) |
| Modifier and Type | Method and Description |
|---|---|
BlobDataIterator |
batchDownload(List<Blob> blobs)
Downloads multiple blobs in batch.
|
InputStream |
download(Blob blobRef)
Downloads a single blob from MaxCompute storage.
|
public BlobManagerImpl(StorageStub stub)
public InputStream download(Blob blobRef)
BlobManagerThe returned InputStream must be closed by the caller to release resources. It is recommended to use try-with-resources to ensure the stream is properly closed.
download in interface BlobManagerblobRef - The blob reference to downloadpublic BlobDataIterator batchDownload(List<Blob> blobs)
BlobManagerThe returned BlobDataIterator must be closed by the caller to release resources. It is recommended to use try-with-resources to ensure the iterator is properly closed.
The order of blobs returned by the iterator matches the order of the input list. If any blob fails to download, the iterator will throw a BlobDownloadException.
batchDownload in interface BlobManagerblobs - The list of blob references to downloadCopyright © 2026 Alibaba Cloud Computing. All rights reserved.