public interface BlobContainer
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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
IOExceptionvoid writeBlob(String blobName, InputStream inputStream, long blobSize) throws IOException
IOExceptionvoid writeBlob(String blobName, BytesReference bytes) throws IOException
IOExceptionvoid deleteBlob(String blobName) throws IOException
IOExceptionvoid deleteBlobs(Collection<String> blobNames) throws IOException
IOExceptionvoid deleteBlobsByPrefix(String blobNamePrefix) throws IOException
IOExceptionMap<String,BlobMetaData> listBlobs() throws IOException
IOExceptionMap<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix) throws IOException
IOExceptionvoid move(String sourceBlobName, String targetBlobName) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.