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)
Deprecated.
Removing this method in 5.0 in favor of using
deleteBlob(String) as the there are no atomic guarantees
to deleting multiple blobs in the same call and the corresponding exception handling is best left to the invoker. |
void |
deleteBlobsByPrefix(String blobNamePrefix)
Deprecated.
Removing this method in 5.0 in favor of using
deleteBlob(String) as the there are no atomic guarantees
to deleting multiple blobs in the same call and the corresponding exception handling is best left to the invoker. |
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)
Deprecated.
Use
writeBlob(String, InputStream, long) instead. |
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
@Deprecated void writeBlob(String blobName, BytesReference bytes) throws IOException
writeBlob(String, InputStream, long)
instead.IOException
void deleteBlob(String blobName) throws IOException
IOException
@Deprecated void deleteBlobs(Collection<String> blobNames) throws IOException
deleteBlob(String)
as the there are no atomic guarantees
to deleting multiple blobs in the same call and the corresponding exception handling is best left to the invoker.IOException
@Deprecated void deleteBlobsByPrefix(String blobNamePrefix) throws IOException
deleteBlob(String)
as the there are no atomic guarantees
to deleting multiple blobs in the same call and the corresponding exception handling is best left to the invoker.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–2017. All rights reserved.