@InterfaceAudience.Public @InterfaceStability.Evolving public class HdfsDataInputStream extends org.apache.hadoop.fs.FSDataInputStream
FSDataInputStream.in| Constructor and Description |
|---|
HdfsDataInputStream(org.apache.hadoop.hdfs.DFSInputStream in) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.hadoop.hdfs.protocol.LocatedBlock> |
getAllBlocks()
Get the collection of blocks that has already been located.
|
org.apache.hadoop.hdfs.protocol.ExtendedBlock |
getCurrentBlock()
Get the block containing the target position.
|
org.apache.hadoop.hdfs.protocol.DatanodeInfo |
getCurrentDatanode()
Get the datanode from which the stream is currently reading.
|
DFSInputStream.ReadStatistics |
getReadStatistics()
Get statistics about the reads which this DFSInputStream has done.
|
long |
getVisibleLength()
Get the visible length of the file.
|
getFileDescriptor, getPos, read, read, read, read, readFully, readFully, releaseBuffer, seek, seekToNewSource, setDropBehind, setReadaheadread, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesavailable, close, mark, markSupported, read, reset, skippublic HdfsDataInputStream(org.apache.hadoop.hdfs.DFSInputStream in) throws IOException
IOExceptionpublic org.apache.hadoop.hdfs.protocol.DatanodeInfo getCurrentDatanode()
public org.apache.hadoop.hdfs.protocol.ExtendedBlock getCurrentBlock()
public List<org.apache.hadoop.hdfs.protocol.LocatedBlock> getAllBlocks() throws IOException
IOExceptionpublic long getVisibleLength() throws IOException
IOExceptionpublic DFSInputStream.ReadStatistics getReadStatistics()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.