@InterfaceAudience.Public
 @InterfaceStability.Evolving
public class HdfsDataInputStream
extends org.apache.hadoop.fs.FSDataInputStream
FSDataInputStream.in| Constructor and Description | 
|---|
| HdfsDataInputStream(org.apache.hadoop.crypto.CryptoInputStream in) | 
| HdfsDataInputStream(org.apache.hadoop.hdfs.DFSInputStream in) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clearReadStatistics() | 
| 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. | 
| ReadStatistics | getReadStatistics()Get statistics about the reads which this DFSInputStream has done. | 
| long | getVisibleLength()Get the visible length of the file. | 
| InputStream | getWrappedStream()Get a reference to the wrapped output stream. | 
getFileDescriptor, getIOStatistics, getPos, hasCapability, maxReadSizeForVectorReads, minSeekForVectorReads, read, read, read, read, read, readFully, readFully, readFully, readVectored, 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 HdfsDataInputStream(org.apache.hadoop.hdfs.DFSInputStream in)
public HdfsDataInputStream(org.apache.hadoop.crypto.CryptoInputStream in)
public InputStream getWrappedStream()
getWrappedStream in class org.apache.hadoop.fs.FSDataInputStreampublic 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()
public ReadStatistics getReadStatistics()
public void clearReadStatistics()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.