org.elasticsearch.common.compress.snappy.xerial
Class XerialSnappyCompressedIndexOutput

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
                  extended by org.elasticsearch.common.compress.snappy.xerial.XerialSnappyCompressedIndexOutput
All Implemented Interfaces:
Closeable

public class XerialSnappyCompressedIndexOutput
extends SnappyCompressedIndexOutput


Field Summary
 
Fields inherited from class org.elasticsearch.common.compress.snappy.SnappyCompressedIndexOutput
compressedBuffer, recycler
 
Fields inherited from class org.elasticsearch.common.compress.CompressedIndexOutput
context, uncompressed, uncompressedLength
 
Constructor Summary
XerialSnappyCompressedIndexOutput(org.apache.lucene.store.IndexOutput out, SnappyCompressorContext context)
           
 
Method Summary
protected  void compress(byte[] data, int offset, int len, org.apache.lucene.store.IndexOutput out)
          Compresses the data into the output
 
Methods inherited from class org.elasticsearch.common.compress.snappy.SnappyCompressedIndexOutput
doClose, writeHeader
 
Methods inherited from class org.elasticsearch.common.compress.CompressedIndexOutput
close, 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
 

Constructor Detail

XerialSnappyCompressedIndexOutput

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

compress

protected void compress(byte[] data,
                        int offset,
                        int len,
                        org.apache.lucene.store.IndexOutput out)
                 throws IOException
Description copied from class: CompressedIndexOutput
Compresses the data into the output

Specified by:
compress in class CompressedIndexOutput<SnappyCompressorContext>
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.