org.apache.cassandra.io.compress
Class CompressedRandomAccessReader

java.lang.Object
  extended by java.io.RandomAccessFile
      extended by org.apache.cassandra.io.util.RandomAccessReader
          extended by org.apache.cassandra.io.compress.CompressedRandomAccessReader
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, java.io.DataOutput, FileDataInput

public class CompressedRandomAccessReader
extends RandomAccessReader


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cassandra.io.util.RandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMark
 
Field Summary
 
Fields inherited from class org.apache.cassandra.io.util.RandomAccessReader
buffer, bufferOffset, CACHE_FLUSH_INTERVAL_IN_BYTES, current, DEFAULT_BUFFER_SIZE, markedPointer, validBufferBytes
 
Constructor Summary
CompressedRandomAccessReader(java.lang.String dataFilePath, CompressionMetadata metadata, boolean skipIOCache)
           
 
Method Summary
 void close()
           
 long length()
           
static RandomAccessReader open(java.lang.String dataFilePath, CompressionMetadata metadata)
           
static RandomAccessReader open(java.lang.String dataFilePath, CompressionMetadata metadata, boolean skipIOCache)
           
protected  void reBuffer()
          Read data from file starting from current currentOffset to populate buffer.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cassandra.io.util.RandomAccessReader
bufferCursor, bytesPastMark, bytesPastMark, bytesRemaining, getFilePointer, getPath, isEOF, mark, open, open, open, open, open, read, read, read, readBytes, reset, reset, resetBuffer, seek, write, write, write
 
Methods inherited from class java.io.RandomAccessFile
getChannel, getFD, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setLength, skipBytes, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Constructor Detail

CompressedRandomAccessReader

public CompressedRandomAccessReader(java.lang.String dataFilePath,
                                    CompressionMetadata metadata,
                                    boolean skipIOCache)
                             throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

open

public static RandomAccessReader open(java.lang.String dataFilePath,
                                      CompressionMetadata metadata)

open

public static RandomAccessReader open(java.lang.String dataFilePath,
                                      CompressionMetadata metadata,
                                      boolean skipIOCache)

reBuffer

protected void reBuffer()
Description copied from class: RandomAccessReader
Read data from file starting from current currentOffset to populate buffer.

Overrides:
reBuffer in class RandomAccessReader

length

public long length()
Overrides:
length in class RandomAccessReader

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class RandomAccessReader

toString

public java.lang.String toString()
Overrides:
toString in class RandomAccessReader


Copyright © 2012 The Apache Software Foundation