@InterfaceStability.Unstable
public interface AbfsInputStreamStatistics
extends org.apache.hadoop.fs.statistics.IOStatisticsSource
| Modifier and Type | Method and Description |
|---|---|
void |
bytesRead(long bytes)
Increment the bytes read counter by the number of bytes;
no-op if the argument is negative.
|
void |
bytesReadFromBuffer(long bytes)
Record the total bytes read from buffer.
|
org.apache.hadoop.fs.statistics.IOStatistics |
getIOStatistics()
Get the IOStatisticsStore instance from AbfsInputStreamStatistics.
|
void |
readAheadBytesRead(long bytes)
Records the bytes read from readAhead buffer.
|
void |
readOperationStarted()
A
read(byte[] buf, int off, int len) operation has started. |
void |
remoteBytesRead(long bytes)
Records bytes read remotely after nothing from readAheadBuffer was read.
|
void |
remoteReadOperation()
Records a successful remote read operation.
|
void |
seek(long seekTo,
long currentPos)
Record a forward or backward seek, adding a seek operation, a forward or
a backward seek operation, and number of bytes skipped.
|
void |
seekBackwards(long negativeOffset)
Seek backwards, incrementing the seek and backward seek counters.
|
void |
seekForwards(long skipped)
Record a forward seek, adding a seek operation, a forward
seek operation, and any bytes skipped.
|
void |
seekInBuffer()
Records the total number of seeks done in the buffer.
|
String |
toString()
Makes the string of all the AbfsInputStream statistics.
|
void seekBackwards(long negativeOffset)
negativeOffset - how far was the seek?
This is expected to be negative.void seekForwards(long skipped)
skipped - number of bytes skipped by reading from the stream.
If the seek was implemented by a close + reopen, set this to zero.void seek(long seekTo,
long currentPos)
seekTo - seek to the position.currentPos - current position.void bytesRead(long bytes)
bytes - number of bytes read.void bytesReadFromBuffer(long bytes)
bytes - number of bytes that are read from buffer.void seekInBuffer()
void readOperationStarted()
read(byte[] buf, int off, int len) operation has started.void remoteReadOperation()
void readAheadBytesRead(long bytes)
bytes - the bytes to be incremented.void remoteBytesRead(long bytes)
bytes - the bytes to be incremented.org.apache.hadoop.fs.statistics.IOStatistics getIOStatistics()
getIOStatistics in interface org.apache.hadoop.fs.statistics.IOStatisticsSourceCopyright © 2008–2021 Apache Software Foundation. All rights reserved.