public class TimedFSDataInputStream
extends org.apache.hadoop.fs.FSDataInputStream
FSDataInputStream that also times the operations.in| Constructor and Description |
|---|
TimedFSDataInputStream(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
read(ByteBuffer buf) |
ByteBuffer |
read(org.apache.hadoop.io.ByteBufferPool bufferPool,
int maxLength,
EnumSet<org.apache.hadoop.fs.ReadOption> opts) |
int |
read(long position,
byte[] buffer,
int offset,
int length) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int offset,
int length) |
getFileDescriptor, getPos, getWrappedStream, hasCapability, read, read, releaseBuffer, seek, seekToNewSource, setDropBehind, setReadahead, toString, unbufferread, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, close, mark, markSupported, read, reset, skippublic TimedFSDataInputStream(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataInputStream in)
public int read(ByteBuffer buf) throws IOException
read in interface org.apache.hadoop.fs.ByteBufferReadableread in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic int read(long position,
byte[] buffer,
int offset,
int length)
throws IOException
read in interface org.apache.hadoop.fs.PositionedReadableread in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic ByteBuffer read(org.apache.hadoop.io.ByteBufferPool bufferPool, int maxLength, EnumSet<org.apache.hadoop.fs.ReadOption> opts) throws IOException, UnsupportedOperationException
read in interface org.apache.hadoop.fs.HasEnhancedByteBufferAccessread in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionUnsupportedOperationExceptionpublic void readFully(long position,
byte[] buffer)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadablereadFully in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic void readFully(long position,
byte[] buffer,
int offset,
int length)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadablereadFully in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.