Class URLBlobContainer
java.lang.Object
org.opensearch.common.blobstore.support.AbstractBlobContainer
org.opensearch.common.blobstore.url.URLBlobContainer
- All Implemented Interfaces:
BlobContainer
URL blob implementation of
BlobContainer-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.blobstore.BlobContainer
BlobContainer.BlobNameSortOrder -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionURLBlobContainer(URLBlobStore blobStore, BlobPath blobPath, URL path) Constructs new URLBlobContainer -
Method Summary
Modifier and TypeMethodDescriptionbooleanblobExists(String blobName) Tests whether a blob with the given blob name exists in the container.children()delete()voiddeleteBlobsIgnoringIfNotExists(List<String> blobNames) This operation is not supported by URLBlobContainerThis operation is not supported by URLBlobContainerlistBlobsByPrefix(String blobNamePrefix) This operation is not supported by URLBlobContainerurl()Returns URL for this containervoidwriteBlob(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists) voidwriteBlobAtomic(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists) Methods inherited from class org.opensearch.common.blobstore.support.AbstractBlobContainer
pathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.common.blobstore.BlobContainer
listBlobsByPrefixInSortedOrder, listBlobsByPrefixInSortedOrder, readBlobPreferredLength, readBlobWithMetadata, writeBlobAtomicWithMetadata, writeBlobWithMetadata
-
Field Details
-
blobStore
-
path
-
-
Constructor Details
-
URLBlobContainer
Constructs new URLBlobContainer- Parameters:
blobStore- blob storeblobPath- blob path for this containerpath- URL for this container
-
-
Method Details
-
url
Returns URL for this container- Returns:
- URL for this container
-
blobExists
Tests whether a blob with the given blob name exists in the container.- Parameters:
blobName- The name of the blob whose existence is to be determined.- Returns:
trueif a blob exists in theBlobContainerwith the given name, andfalseotherwise.- Throws:
IOException
-
listBlobs
This operation is not supported by URLBlobContainer- Throws:
IOException
-
children
- Throws:
IOException
-
listBlobsByPrefix
This operation is not supported by URLBlobContainer- Throws:
IOException
-
deleteBlobsIgnoringIfNotExists
This operation is not supported by URLBlobContainer -
delete
-
readBlob
- Throws:
IOException
-
readBlob
- Throws:
IOException
-
writeBlob
public void writeBlob(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists) throws IOException - Throws:
IOException
-
writeBlobAtomic
public void writeBlobAtomic(String blobName, InputStream inputStream, long blobSize, boolean failIfAlreadyExists) throws IOException - Throws:
IOException
-