public class CompressedRandomAccessReader extends RandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMarkbuffer, BUFFER_SIZE, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer, owner| Modifier | Constructor and Description |
|---|---|
protected |
CompressedRandomAccessReader(ChannelProxy channel,
CompressionMetadata metadata,
ICompressedFile file,
PoolingSegmentedFile owner) |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.ByteBuffer |
allocateBuffer(int bufferSize,
BufferType bufferType) |
void |
deallocate() |
int |
getTotalBufferSize() |
long |
length() |
static CompressedRandomAccessReader |
open(ChannelProxy channel,
CompressionMetadata metadata) |
static CompressedRandomAccessReader |
open(ICompressedFile file) |
protected void |
reBuffer()
Read data from file starting from current currentOffset to populate buffer.
|
java.lang.String |
toString() |
bytesPastMark, bytesPastMark, bytesRemaining, close, current, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, isEOF, mark, open, open, open, open, read, read, read, readBytes, reset, reset, seekreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesprotected CompressedRandomAccessReader(ChannelProxy channel, CompressionMetadata metadata, ICompressedFile file, PoolingSegmentedFile owner)
public static CompressedRandomAccessReader open(ChannelProxy channel, CompressionMetadata metadata)
public static CompressedRandomAccessReader open(ICompressedFile file)
protected java.nio.ByteBuffer allocateBuffer(int bufferSize,
BufferType bufferType)
allocateBuffer in class RandomAccessReaderpublic void deallocate()
deallocate in class RandomAccessReaderprotected void reBuffer()
RandomAccessReaderreBuffer in class RandomAccessReaderpublic int getTotalBufferSize()
getTotalBufferSize in class RandomAccessReaderpublic long length()
length in class RandomAccessReaderpublic java.lang.String toString()
toString in class RandomAccessReaderCopyright © 2018 The Apache Software Foundation