public class ThrottledReader extends RandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMark
DataInputPlus.DataInputStreamPlus
buffer, bufferOffset, channel, DEFAULT_BUFFER_SIZE, markedPointer
Modifier | Constructor and Description |
---|---|
protected |
ThrottledReader(ChannelProxy channel,
int bufferSize,
long overrideLength,
com.google.common.util.concurrent.RateLimiter limiter) |
Modifier and Type | Method and Description |
---|---|
static ThrottledReader |
open(ChannelProxy channel,
int bufferSize,
long overrideLength,
com.google.common.util.concurrent.RateLimiter limiter) |
protected void |
reBuffer()
Read data from file starting from current currentOffset to populate buffer.
|
allocateBuffer, bytesPastMark, bytesPastMark, bytesRemaining, close, current, getBufferSize, getChannel, getFilePointer, getPath, getPosition, getPositionLimit, getTotalBufferSize, isEOF, length, mark, open, open, open, read, read, read, readBytes, reset, reset, seek, toString
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
protected ThrottledReader(ChannelProxy channel, int bufferSize, long overrideLength, com.google.common.util.concurrent.RateLimiter limiter)
protected void reBuffer()
RandomAccessReader
reBuffer
in class RandomAccessReader
public static ThrottledReader open(ChannelProxy channel, int bufferSize, long overrideLength, com.google.common.util.concurrent.RateLimiter limiter)
Copyright © 2015 The Apache Software Foundation