public class ThrottledReader extends RandomAccessReader
RandomAccessReader.BufferedRandomAccessFileMarkDataInputPlus.DataInputStreamPlusbuffer, 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, toStringreadBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadUnsignedVInt, readVIntprotected ThrottledReader(ChannelProxy channel, int bufferSize, long overrideLength, com.google.common.util.concurrent.RateLimiter limiter)
protected void reBuffer()
RandomAccessReaderreBuffer in class RandomAccessReaderpublic static ThrottledReader open(ChannelProxy channel, int bufferSize, long overrideLength, com.google.common.util.concurrent.RateLimiter limiter)
Copyright © 2015 The Apache Software Foundation