org.elasticsearch.common.blobstore.hdfs
Class HdfsImmutableBlobContainer

java.lang.Object
  extended by org.elasticsearch.common.blobstore.support.AbstractBlobContainer
      extended by org.elasticsearch.common.blobstore.hdfs.AbstractHdfsBlobContainer
          extended by org.elasticsearch.common.blobstore.hdfs.HdfsImmutableBlobContainer
All Implemented Interfaces:
org.elasticsearch.common.blobstore.BlobContainer, org.elasticsearch.common.blobstore.ImmutableBlobContainer

public class HdfsImmutableBlobContainer
extends AbstractHdfsBlobContainer
implements org.elasticsearch.common.blobstore.ImmutableBlobContainer


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.blobstore.ImmutableBlobContainer
org.elasticsearch.common.blobstore.ImmutableBlobContainer.WriterListener
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.blobstore.BlobContainer
org.elasticsearch.common.blobstore.BlobContainer.BlobNameFilter, org.elasticsearch.common.blobstore.BlobContainer.ReadBlobListener
 
Field Summary
 
Fields inherited from class org.elasticsearch.common.blobstore.hdfs.AbstractHdfsBlobContainer
blobStore, path
 
Constructor Summary
HdfsImmutableBlobContainer(HdfsBlobStore blobStore, org.elasticsearch.common.blobstore.BlobPath blobPath, org.apache.hadoop.fs.Path path)
           
 
Method Summary
 void writeBlob(java.lang.String blobName, java.io.InputStream is, long sizeInBytes)
           
 void writeBlob(java.lang.String blobName, java.io.InputStream is, long sizeInBytes, org.elasticsearch.common.blobstore.ImmutableBlobContainer.WriterListener listener)
           
 
Methods inherited from class org.elasticsearch.common.blobstore.hdfs.AbstractHdfsBlobContainer
blobExists, deleteBlob, listBlobs, listBlobsByPrefix, readBlob
 
Methods inherited from class org.elasticsearch.common.blobstore.support.AbstractBlobContainer
deleteBlobsByFilter, deleteBlobsByPrefix, path, readBlobFully
 
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, deleteBlobsByFilter, deleteBlobsByPrefix, listBlobs, listBlobsByPrefix, path, readBlob, readBlobFully
 

Constructor Detail

HdfsImmutableBlobContainer

public HdfsImmutableBlobContainer(HdfsBlobStore blobStore,
                                  org.elasticsearch.common.blobstore.BlobPath blobPath,
                                  org.apache.hadoop.fs.Path path)
Method Detail

writeBlob

public void writeBlob(java.lang.String blobName,
                      java.io.InputStream is,
                      long sizeInBytes,
                      org.elasticsearch.common.blobstore.ImmutableBlobContainer.WriterListener listener)
Specified by:
writeBlob in interface org.elasticsearch.common.blobstore.ImmutableBlobContainer

writeBlob

public void writeBlob(java.lang.String blobName,
                      java.io.InputStream is,
                      long sizeInBytes)
               throws java.io.IOException
Specified by:
writeBlob in interface org.elasticsearch.common.blobstore.ImmutableBlobContainer
Throws:
java.io.IOException