public class GSBlobStorageImpl extends Object implements GSBlobStorage
| Constructor and Description |
|---|
GSBlobStorageImpl(com.google.cloud.storage.Storage storage)
Constructs a GSBlobStorage instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
compose(List<GSBlobIdentifier> sourceBlobIdentifiers,
GSBlobIdentifier targetBlobIdentifier)
Composes multiple blobs into one.
|
void |
copy(GSBlobIdentifier sourceBlobIdentifier,
GSBlobIdentifier targetBlobIdentifier)
Copies from a source blob id to a target blob id.
|
void |
createBlob(GSBlobIdentifier blobIdentifier)
Create an empty blob.
|
List<Boolean> |
delete(Iterable<GSBlobIdentifier> blobIdentifiers)
Deletes blobs.
|
Optional<GSBlobStorage.BlobMetadata> |
getMetadata(GSBlobIdentifier blobIdentifier)
Gets blob metadata.
|
List<GSBlobIdentifier> |
list(String bucketName,
String objectPrefix)
Lists all the blobs in a bucket matching a given prefix.
|
GSBlobStorage.WriteChannel |
writeBlob(GSBlobIdentifier blobIdentifier)
Creates a write channel with the default chunk size.
|
GSBlobStorage.WriteChannel |
writeBlob(GSBlobIdentifier blobIdentifier,
org.apache.flink.configuration.MemorySize chunkSize)
Creates a write channel with the specified chunk size.
|
public GSBlobStorageImpl(com.google.cloud.storage.Storage storage)
storage - The wrapped Google Storage instance.public GSBlobStorage.WriteChannel writeBlob(GSBlobIdentifier blobIdentifier)
GSBlobStoragewriteBlob in interface GSBlobStorageblobIdentifier - The blob identifier to which to writepublic GSBlobStorage.WriteChannel writeBlob(GSBlobIdentifier blobIdentifier, org.apache.flink.configuration.MemorySize chunkSize)
GSBlobStoragewriteBlob in interface GSBlobStorageblobIdentifier - The blob identifier to which to writechunkSize - The chunk size, must be > 0public void createBlob(GSBlobIdentifier blobIdentifier)
GSBlobStoragecreateBlob in interface GSBlobStorageblobIdentifier - The blob to createpublic Optional<GSBlobStorage.BlobMetadata> getMetadata(GSBlobIdentifier blobIdentifier)
GSBlobStoragegetMetadata in interface GSBlobStorageblobIdentifier - The blob identifierpublic List<GSBlobIdentifier> list(String bucketName, String objectPrefix)
GSBlobStoragelist in interface GSBlobStoragebucketName - The bucket nameobjectPrefix - The object prefixpublic void copy(GSBlobIdentifier sourceBlobIdentifier, GSBlobIdentifier targetBlobIdentifier)
GSBlobStoragecopy in interface GSBlobStoragesourceBlobIdentifier - The source blob identifiertargetBlobIdentifier - The target glob identifierpublic void compose(List<GSBlobIdentifier> sourceBlobIdentifiers, GSBlobIdentifier targetBlobIdentifier)
GSBlobStoragecompose in interface GSBlobStoragesourceBlobIdentifiers - The source blob identifiers to combine, max of 32targetBlobIdentifier - The target blob identifierpublic List<Boolean> delete(Iterable<GSBlobIdentifier> blobIdentifiers)
GSBlobStoragedelete in interface GSBlobStorageblobIdentifiers - The blob identifiers to deleteCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.