public class CompressedThrottledReader extends CompressedRandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMark
DataInputPlus.DataInputStreamPlus
buffer, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer
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.
|
close, getBufferSize, getTotalBufferSize, length, open, open, toString
allocateBuffer, bytesPastMark, bytesPastMark, bytesRemaining, current, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, isEOF, mark, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readUnsignedVInt, readVInt
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 © 2015 The Apache Software Foundation