|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.hadoop.fs.FSDataInputStream
org.apache.hadoop.hdfs.client.HdfsDataInputStream
@InterfaceAudience.Public @InterfaceStability.Evolving public class HdfsDataInputStream
The Hdfs implementation of FSDataInputStream
.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
HdfsDataInputStream(org.apache.hadoop.crypto.CryptoInputStream in)
|
|
HdfsDataInputStream(org.apache.hadoop.hdfs.DFSInputStream in)
|
Method Summary | |
---|---|
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. |
InputStream |
getWrappedStream()
Get a reference to the wrapped output stream. |
Methods inherited from class org.apache.hadoop.fs.FSDataInputStream |
---|
getFileDescriptor, getPos, read, read, read, read, readFully, readFully, releaseBuffer, seek, seekToNewSource, setDropBehind, setReadahead |
Methods inherited from class java.io.DataInputStream |
---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HdfsDataInputStream(org.apache.hadoop.hdfs.DFSInputStream in) throws IOException
IOException
public HdfsDataInputStream(org.apache.hadoop.crypto.CryptoInputStream in) throws IOException
IOException
Method Detail |
---|
public InputStream getWrappedStream()
getWrappedStream
in class org.apache.hadoop.fs.FSDataInputStream
public 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
IOException
public long getVisibleLength() throws IOException
IOException
public DFSInputStream.ReadStatistics getReadStatistics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |