public class URLBlobContainer extends AbstractBlobContainer
BlobContainer
Modifier and Type | Field and Description |
---|---|
protected URLBlobStore |
blobStore |
protected URL |
path |
Constructor and Description |
---|
URLBlobContainer(URLBlobStore blobStore,
BlobPath blobPath,
URL path)
Constructs new URLBlobContainer
|
Modifier and Type | Method and Description |
---|---|
boolean |
blobExists(String blobName)
This operation is not supported by URLBlobContainer
|
void |
deleteBlob(String blobName)
This operation is not supported by URLBlobContainer
|
com.google.common.collect.ImmutableMap<String,BlobMetaData> |
listBlobs()
This operation is not supported by URLBlobContainer
|
com.google.common.collect.ImmutableMap<String,BlobMetaData> |
listBlobsByPrefix(String blobNamePrefix)
This operation is not supported by URLBlobContainer
|
void |
move(String from,
String to)
Atomically renames source blob into target blob
|
InputStream |
readBlob(String name)
Creates a new InputStream for the given blob name
|
URL |
url()
Returns URL for this container
|
void |
writeBlob(String blobName,
BytesReference data)
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
|
deleteBlobs, deleteBlobsByPrefix, path
protected final URLBlobStore blobStore
protected final URL path
public URLBlobContainer(URLBlobStore blobStore, BlobPath blobPath, URL path)
blobStore
- blob storeblobPath
- blob path for this containerpath
- URL for this containerpublic URL url()
public com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobs() throws IOException
IOException
public com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix) throws IOException
IOException
public void move(String from, String to) throws IOException
BlobContainer
IOException
public void deleteBlob(String blobName) throws IOException
IOException
public boolean blobExists(String blobName)
public InputStream readBlob(String name) throws IOException
BlobContainer
IOException
public void writeBlob(String blobName, InputStream inputStream, long blobSize) throws IOException
BlobContainer
IOException
public void writeBlob(String blobName, BytesReference data) throws IOException
BlobContainer
IOException
Copyright © 2009–2016. All rights reserved.