org.elasticsearch.common.compress.lzf
Class LZFCompressedIndexInput

java.lang.Object
  extended by org.apache.lucene.store.DataInput
      extended by org.apache.lucene.store.IndexInput
          extended by org.elasticsearch.common.compress.CompressedIndexInput<LZFCompressorContext>
              extended by org.elasticsearch.common.compress.lzf.LZFCompressedIndexInput
All Implemented Interfaces:
Closeable, Cloneable

public class LZFCompressedIndexInput
extends CompressedIndexInput<LZFCompressorContext>


Field Summary
 
Fields inherited from class org.elasticsearch.common.compress.CompressedIndexInput
context, uncompressed, uncompressedLength
 
Constructor Summary
LZFCompressedIndexInput(org.apache.lucene.store.IndexInput in, com.ning.compress.lzf.ChunkDecoder decoder)
           
 
Method Summary
 Object clone()
           
protected  void doClose()
           
protected  void readHeader(org.apache.lucene.store.IndexInput in)
           
protected  int uncompress(org.apache.lucene.store.IndexInput in, byte[] out)
          Uncompress the data into the out array, returning the size uncompressed
 
Methods inherited from class org.elasticsearch.common.compress.CompressedIndexInput
available, close, getFilePointer, length, read, readByte, readBytes, readyBuffer, seek
 
Methods inherited from class org.apache.lucene.store.IndexInput
copyBytes, skipChars, toString
 
Methods inherited from class org.apache.lucene.store.DataInput
readBytes, readChars, readInt, readLong, readShort, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LZFCompressedIndexInput

public LZFCompressedIndexInput(org.apache.lucene.store.IndexInput in,
                               com.ning.compress.lzf.ChunkDecoder decoder)
                        throws IOException
Throws:
IOException
Method Detail

readHeader

protected void readHeader(org.apache.lucene.store.IndexInput in)
                   throws IOException
Specified by:
readHeader in class CompressedIndexInput<LZFCompressorContext>
Throws:
IOException

uncompress

protected int uncompress(org.apache.lucene.store.IndexInput in,
                         byte[] out)
                  throws IOException
Description copied from class: CompressedIndexInput
Uncompress the data into the out array, returning the size uncompressed

Specified by:
uncompress in class CompressedIndexInput<LZFCompressorContext>
Throws:
IOException

doClose

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

clone

public Object clone()
Overrides:
clone in class CompressedIndexInput<LZFCompressorContext>


Copyright © 2009-2012. All Rights Reserved.