public class GSBlobStorageImpl extends Object implements GSBlobStorage
| 构造器和说明 |
|---|
GSBlobStorageImpl(com.google.cloud.storage.Storage storage)
Constructs a GSBlobStorage instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 GSBlobStorageblobIdentifier - The blob identifier to which to writepublic GSBlobStorage.WriteChannel writeBlob(GSBlobIdentifier blobIdentifier, org.apache.flink.configuration.MemorySize chunkSize)
GSBlobStoragewriteBlob 在接口中 GSBlobStorageblobIdentifier - The blob identifier to which to writechunkSize - The chunk size, must be > 0public void createBlob(GSBlobIdentifier blobIdentifier)
GSBlobStoragecreateBlob 在接口中 GSBlobStorageblobIdentifier - The blob to createpublic Optional<GSBlobStorage.BlobMetadata> getMetadata(GSBlobIdentifier blobIdentifier)
GSBlobStoragegetMetadata 在接口中 GSBlobStorageblobIdentifier - The blob identifierpublic List<GSBlobIdentifier> list(String bucketName, String objectPrefix)
GSBlobStoragelist 在接口中 GSBlobStoragebucketName - The bucket nameobjectPrefix - The object prefixpublic void copy(GSBlobIdentifier sourceBlobIdentifier, GSBlobIdentifier targetBlobIdentifier)
GSBlobStoragecopy 在接口中 GSBlobStoragesourceBlobIdentifier - The source blob identifiertargetBlobIdentifier - The target glob identifierpublic void compose(List<GSBlobIdentifier> sourceBlobIdentifiers, GSBlobIdentifier targetBlobIdentifier)
GSBlobStoragecompose 在接口中 GSBlobStoragesourceBlobIdentifiers - The source blob identifiers to combine, max of 32targetBlobIdentifier - The target blob identifierpublic List<Boolean> delete(Iterable<GSBlobIdentifier> blobIdentifiers)
GSBlobStoragedelete 在接口中 GSBlobStorageblobIdentifiers - The blob identifiers to deleteCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.