public class CompressedThrottledReader extends CompressedRandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMark
buffer, BUFFER_SIZE, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer, owner
Constructor and Description |
---|
CompressedThrottledReader(ChannelProxy channel,
CompressionMetadata metadata,
ICompressedFile file,
com.google.common.util.concurrent.RateLimiter limiter) |
Modifier and Type | Method and Description |
---|---|
static CompressedThrottledReader |
open(ICompressedFile file,
com.google.common.util.concurrent.RateLimiter limiter) |
protected void |
reBuffer()
Read data from file starting from current currentOffset to populate buffer.
|
allocateBuffer, deallocate, getTotalBufferSize, length, open, open, toString
bytesPastMark, bytesPastMark, bytesRemaining, close, current, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, isEOF, mark, open, open, open, open, read, read, read, readBytes, reset, reset, seek
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
public CompressedThrottledReader(ChannelProxy channel, CompressionMetadata metadata, ICompressedFile file, com.google.common.util.concurrent.RateLimiter limiter)
protected void reBuffer()
RandomAccessReader
reBuffer
in class CompressedRandomAccessReader
public static CompressedThrottledReader open(ICompressedFile file, com.google.common.util.concurrent.RateLimiter limiter)
Copyright © 2018 The Apache Software Foundation