|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.RandomAccessFile
org.apache.cassandra.io.util.RandomAccessReader
org.apache.cassandra.io.compress.CompressedRandomAccessReader
public class CompressedRandomAccessReader
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, current, DEFAULT_BUFFER_SIZE, markedPointer, MAX_BYTES_IN_PAGE_CACHE, validBufferBytes |
Constructor Summary | |
---|---|
CompressedRandomAccessReader(java.lang.String dataFilePath,
CompressionMetadata metadata,
boolean skipIOCache)
|
Method Summary | |
---|---|
long |
length()
|
static CompressionMetadata |
metadata(java.lang.String dataFilePath)
Get metadata about given compressed file including uncompressed data length, chunk size and list of the chunk offsets of the compressed data. |
static RandomAccessReader |
open(java.lang.String dataFilePath,
boolean skipIOCache)
|
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, close, 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 |
---|
public CompressedRandomAccessReader(java.lang.String dataFilePath, CompressionMetadata metadata, boolean skipIOCache) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static CompressionMetadata metadata(java.lang.String dataFilePath)
dataFilePath
- Path to the compressed file
public static RandomAccessReader open(java.lang.String dataFilePath, boolean skipIOCache) throws java.io.IOException
java.io.IOException
public static RandomAccessReader open(java.lang.String dataFilePath, CompressionMetadata metadata) throws java.io.IOException
java.io.IOException
public static RandomAccessReader open(java.lang.String dataFilePath, CompressionMetadata metadata, boolean skipIOCache) throws java.io.IOException
java.io.IOException
protected void reBuffer() throws java.io.IOException
RandomAccessReader
reBuffer
in class RandomAccessReader
java.io.IOException
- on any I/O error.public long length() throws java.io.IOException
length
in class RandomAccessReader
java.io.IOException
public java.lang.String toString()
toString
in class RandomAccessReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |