public class VoidBlobStore extends Object implements BlobStoreService
| 构造器和说明 |
|---|
VoidBlobStore() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
closeAndCleanupAllData()
Closes and cleans up the store.
|
boolean |
delete(org.apache.flink.api.common.JobID jobId,
BlobKey blobKey)
Tries to delete a blob from storage.
|
boolean |
deleteAll(org.apache.flink.api.common.JobID jobId)
Tries to delete all blobs for the given job from storage.
|
boolean |
get(org.apache.flink.api.common.JobID jobId,
BlobKey blobKey,
File localFile)
Copies a blob to a local file.
|
boolean |
put(File localFile,
org.apache.flink.api.common.JobID jobId,
BlobKey blobKey)
Copies the local file to the blob store.
|
public boolean put(File localFile, org.apache.flink.api.common.JobID jobId, BlobKey blobKey) throws IOException
BlobStoreput 在接口中 BlobStorelocalFile - The file to copyjobId - ID of the job this blob belongs to (or null if job-unrelated)blobKey - The ID for the file in the blob storeIOException - If the copy failspublic boolean get(org.apache.flink.api.common.JobID jobId,
BlobKey blobKey,
File localFile)
throws IOException
BlobViewget 在接口中 BlobViewjobId - ID of the job this blob belongs to (or null if job-unrelated)blobKey - The blob IDlocalFile - The local file to copy toIOException - If the copy failspublic boolean delete(org.apache.flink.api.common.JobID jobId,
BlobKey blobKey)
BlobStoreNOTE: This also tries to delete any created directories if empty.
public boolean deleteAll(org.apache.flink.api.common.JobID jobId)
BlobStoreNOTE: This also tries to delete any created directories if empty.
public void closeAndCleanupAllData()
BlobStoreServicecloseAndCleanupAllData 在接口中 BlobStoreServicepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.