public interface BlobStore extends BlobView
| Modifier and Type | Method and Description |
|---|---|
void |
delete(BlobKey blobKey)
Tries to delete a blob from storage.
|
void |
delete(JobID jobId,
String key)
Tries to delete a blob from storage.
|
void |
deleteAll(JobID jobId)
Tries to delete all blobs for the given job from storage.
|
void |
put(File localFile,
BlobKey blobKey)
Copies the local file to the blob store.
|
void |
put(File localFile,
JobID jobId,
String key)
Copies a local file to the blob store.
|
void put(File localFile, BlobKey blobKey) throws IOException
localFile - The file to copyblobKey - The ID for the file in the blob storeIOException - If the copy failsvoid put(File localFile, JobID jobId, String key) throws IOException
The job ID and key make up a composite key for the file.
localFile - The file to copyjobId - The JobID part of ID for the file in the blob storekey - The String part of ID for the file in the blob storeIOException - If the copy failsvoid delete(BlobKey blobKey)
NOTE: This also tries to delete any created directories if empty.
blobKey - The blob IDvoid delete(JobID jobId, String key)
NOTE: This also tries to delete any created directories if empty.
jobId - The JobID part of ID for the blobkey - The String part of ID for the blobvoid deleteAll(JobID jobId)
NOTE: This also tries to delete any created directories if empty.
jobId - The JobID part of all blobs to deleteCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.