org.elasticsearch.common.compress.snappy
Class SnappyCompressedIndexInput

java.lang.Object
  extended by org.apache.lucene.store.DataInput
      extended by org.apache.lucene.store.IndexInput
          extended by org.elasticsearch.common.compress.CompressedIndexInput<SnappyCompressorContext>
              extended by org.elasticsearch.common.compress.snappy.SnappyCompressedIndexInput
All Implemented Interfaces:
Closeable, Cloneable
Direct Known Subclasses:
XerialSnappyCompressedIndexInput

public abstract class SnappyCompressedIndexInput
extends CompressedIndexInput<SnappyCompressorContext>


Field Summary
protected  int chunkSize
           
protected  byte[] inputBuffer
           
protected  int maxCompressedChunkLength
           
 
Fields inherited from class org.elasticsearch.common.compress.CompressedIndexInput
context, uncompressed, uncompressedLength
 
Constructor Summary
SnappyCompressedIndexInput(org.apache.lucene.store.IndexInput in, SnappyCompressorContext context)
           
 
Method Summary
 Object clone()
           
protected  void doClose()
           
protected  void readHeader(org.apache.lucene.store.IndexInput in)
           
 
Methods inherited from class org.elasticsearch.common.compress.CompressedIndexInput
available, close, getFilePointer, length, read, readByte, readBytes, readyBuffer, seek, uncompress
 
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
 

Field Detail

chunkSize

protected int chunkSize

maxCompressedChunkLength

protected int maxCompressedChunkLength

inputBuffer

protected byte[] inputBuffer
Constructor Detail

SnappyCompressedIndexInput

public SnappyCompressedIndexInput(org.apache.lucene.store.IndexInput in,
                                  SnappyCompressorContext context)
                           throws IOException
Throws:
IOException
Method Detail

readHeader

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

doClose

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

clone

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


Copyright © 2009-2012. All Rights Reserved.