org.elasticsearch.common.compress.snappy
Class SnappyCompressedIndexOutput

java.lang.Object
  extended by org.apache.lucene.store.DataOutput
      extended by org.apache.lucene.store.IndexOutput
          extended by org.elasticsearch.common.compress.CompressedIndexOutput<SnappyCompressorContext>
              extended by org.elasticsearch.common.compress.snappy.SnappyCompressedIndexOutput
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
XerialSnappyCompressedIndexOutput

public abstract class SnappyCompressedIndexOutput
extends CompressedIndexOutput<SnappyCompressorContext>


Field Summary
protected  byte[] compressedBuffer
           
protected  com.ning.compress.BufferRecycler recycler
           
 
Fields inherited from class org.elasticsearch.common.compress.CompressedIndexOutput
context, uncompressed, uncompressedLength
 
Constructor Summary
SnappyCompressedIndexOutput(org.apache.lucene.store.IndexOutput out, SnappyCompressorContext context)
           
 
Method Summary
protected  void doClose()
           
protected  void writeHeader(org.apache.lucene.store.IndexOutput out)
           
 
Methods inherited from class org.elasticsearch.common.compress.CompressedIndexOutput
close, compress, copyBytes, flush, getFilePointer, length, seek, underlying, writeByte, writeBytes
 
Methods inherited from class org.apache.lucene.store.IndexOutput
setLength
 
Methods inherited from class org.apache.lucene.store.DataOutput
writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recycler

protected final com.ning.compress.BufferRecycler recycler

compressedBuffer

protected byte[] compressedBuffer
Constructor Detail

SnappyCompressedIndexOutput

public SnappyCompressedIndexOutput(org.apache.lucene.store.IndexOutput out,
                                   SnappyCompressorContext context)
                            throws IOException
Throws:
IOException
Method Detail

writeHeader

protected void writeHeader(org.apache.lucene.store.IndexOutput out)
                    throws IOException
Specified by:
writeHeader in class CompressedIndexOutput<SnappyCompressorContext>
Throws:
IOException

doClose

protected void doClose()
                throws IOException
Specified by:
doClose in class CompressedIndexOutput<SnappyCompressorContext>
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.