org.elasticsearch.common.compress.lzf
Class LZFCompressedIndexOutput

java.lang.Object
  extended by org.apache.lucene.store.DataOutput
      extended by org.apache.lucene.store.IndexOutput
          extended by org.elasticsearch.common.compress.CompressedIndexOutput<LZFCompressorContext>
              extended by org.elasticsearch.common.compress.lzf.LZFCompressedIndexOutput
All Implemented Interfaces:
Closeable

public class LZFCompressedIndexOutput
extends CompressedIndexOutput<LZFCompressorContext>


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

LZFCompressedIndexOutput

public LZFCompressedIndexOutput(org.apache.lucene.store.IndexOutput out)
                         throws IOException
Throws:
IOException
Method Detail

writeHeader

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

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<LZFCompressorContext>
Throws:
IOException

doClose

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


Copyright © 2009-2012. All Rights Reserved.