java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable, org.apache.hadoop.fs.ByteBufferPositionedReadable, org.apache.hadoop.fs.ByteBufferReadable, org.apache.hadoop.fs.CanSetDropBehind, org.apache.hadoop.fs.CanSetReadahead, org.apache.hadoop.fs.CanUnbuffer, org.apache.hadoop.fs.HasEnhancedByteBufferAccess, org.apache.hadoop.fs.HasFileDescriptor, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.statistics.IOStatisticsSource, org.apache.hadoop.fs.StreamCapabilitiesDFSClient.DFSDataInputStream@Public
@Evolving
public class HdfsDataInputStream
extends org.apache.hadoop.fs.FSDataInputStream
FSDataInputStream.| Constructor | Description |
|---|---|
HdfsDataInputStream(org.apache.hadoop.crypto.CryptoInputStream in) |
|
HdfsDataInputStream(DFSInputStream in) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearReadStatistics() |
|
java.util.List<LocatedBlock> |
getAllBlocks() |
Get the collection of blocks that has already been located.
|
ExtendedBlock |
getCurrentBlock() |
Get the block containing the target position.
|
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.
|
java.io.InputStream |
getWrappedStream() |
Get a reference to the wrapped output stream.
|
adviseFile, getChunkSize, getFidServers, getFidStr, getFileDescriptor, getFileLength, 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(DFSInputStream in)
public HdfsDataInputStream(org.apache.hadoop.crypto.CryptoInputStream in)
public java.io.InputStream getWrappedStream()
getWrappedStream in class org.apache.hadoop.fs.FSDataInputStreampublic DatanodeInfo getCurrentDatanode()
public ExtendedBlock getCurrentBlock()
public java.util.List<LocatedBlock> getAllBlocks() throws java.io.IOException
java.io.IOExceptionpublic long getVisibleLength()
public ReadStatistics getReadStatistics()
public void clearReadStatistics()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.