org.elasticsearch.common.blobstore.support
Class AbstractBlobContainer

java.lang.Object
  extended by org.elasticsearch.common.blobstore.support.AbstractBlobContainer
All Implemented Interfaces:
BlobContainer
Direct Known Subclasses:
AbstractFsBlobContainer

public abstract class AbstractBlobContainer
extends java.lang.Object
implements BlobContainer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.blobstore.BlobContainer
BlobContainer.BlobNameFilter, BlobContainer.ReadBlobListener
 
Constructor Summary
protected AbstractBlobContainer(BlobPath path)
           
 
Method Summary
 void deleteBlobsByFilter(BlobContainer.BlobNameFilter filter)
           
 void deleteBlobsByPrefix(java.lang.String blobNamePrefix)
           
 org.elasticsearch.common.collect.ImmutableMap<java.lang.String,BlobMetaData> listBlobsByPrefix(java.lang.String blobNamePrefix)
           
 BlobPath path()
           
 byte[] readBlobFully(java.lang.String blobName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.common.blobstore.BlobContainer
blobExists, deleteBlob, listBlobs, readBlob
 

Constructor Detail

AbstractBlobContainer

protected AbstractBlobContainer(BlobPath path)
Method Detail

path

public BlobPath path()
Specified by:
path in interface BlobContainer

readBlobFully

public byte[] readBlobFully(java.lang.String blobName)
                     throws java.io.IOException
Specified by:
readBlobFully in interface BlobContainer
Throws:
java.io.IOException

listBlobsByPrefix

public org.elasticsearch.common.collect.ImmutableMap<java.lang.String,BlobMetaData> listBlobsByPrefix(java.lang.String blobNamePrefix)
                                                                                               throws java.io.IOException
Specified by:
listBlobsByPrefix in interface BlobContainer
Throws:
java.io.IOException

deleteBlobsByPrefix

public void deleteBlobsByPrefix(java.lang.String blobNamePrefix)
                         throws java.io.IOException
Specified by:
deleteBlobsByPrefix in interface BlobContainer
Throws:
java.io.IOException

deleteBlobsByFilter

public void deleteBlobsByFilter(BlobContainer.BlobNameFilter filter)
                         throws java.io.IOException
Specified by:
deleteBlobsByFilter in interface BlobContainer
Throws:
java.io.IOException