public interface BlobContainer
Modifier and Type | Method and Description |
---|---|
boolean |
blobExists(String blobName) |
void |
deleteBlob(String blobName)
Deletes a blob with giving name.
|
void |
deleteBlobs(Collection<String> blobNames)
Deletes blobs with giving names.
|
void |
deleteBlobsByPrefix(String blobNamePrefix)
Deletes all blobs in the container that match the specified prefix.
|
Map<String,BlobMetaData> |
listBlobs()
Lists all blobs in the container
|
Map<String,BlobMetaData> |
listBlobsByPrefix(String blobNamePrefix)
Lists all blobs in the container that match specified prefix
|
void |
move(String sourceBlobName,
String targetBlobName)
Atomically renames source blob into target blob
|
BlobPath |
path() |
InputStream |
readBlob(String blobName)
Creates a new InputStream for the given blob name
|
void |
writeBlob(String blobName,
BytesReference bytes)
Writes bytes to the blob
|
void |
writeBlob(String blobName,
InputStream inputStream,
long blobSize)
Reads blob content from the input stream and writes it to the blob store
|
BlobPath path()
boolean blobExists(String blobName)
InputStream readBlob(String blobName) throws IOException
IOException
void writeBlob(String blobName, InputStream inputStream, long blobSize) throws IOException
IOException
void writeBlob(String blobName, BytesReference bytes) throws IOException
IOException
void deleteBlob(String blobName) throws IOException
IOException
void deleteBlobs(Collection<String> blobNames) throws IOException
IOException
void deleteBlobsByPrefix(String blobNamePrefix) throws IOException
IOException
Map<String,BlobMetaData> listBlobs() throws IOException
IOException
Map<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix) throws IOException
IOException
void move(String sourceBlobName, String targetBlobName) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.