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 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(String blobNamePrefix)
           
 com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix)
           
 BlobPath path()
           
 byte[] readBlobFully(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(String blobName)
                     throws IOException
Specified by:
readBlobFully in interface BlobContainer
Throws:
IOException

listBlobsByPrefix

public com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix)
                                                                              throws IOException
Specified by:
listBlobsByPrefix in interface BlobContainer
Throws:
IOException

deleteBlobsByPrefix

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

deleteBlobsByFilter

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


Copyright © 2009-2012. All Rights Reserved.