Package alluxio.hadoop
Class HdfsFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- alluxio.hadoop.BaseHdfsFileInputStream
-
- alluxio.hadoop.HdfsFileInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.hadoop.fs.ByteBufferReadable,org.apache.hadoop.fs.CanUnbuffer,org.apache.hadoop.fs.PositionedReadable,org.apache.hadoop.fs.Seekable,org.apache.hadoop.fs.StreamCapabilities
@NotThreadSafe public class HdfsFileInputStream extends alluxio.hadoop.BaseHdfsFileInputStream implements org.apache.hadoop.fs.CanUnbuffer, org.apache.hadoop.fs.StreamCapabilitiesHdfsFileInputStream implement for hadoop 3. This is just a wrapper aroundHdfsFileInputStreamwith CanUnbuffer and StreamCapabilities support.
-
-
Constructor Summary
Constructors Constructor Description HdfsFileInputStream(alluxio.client.file.FileInStream inputStream, org.apache.hadoop.fs.FileSystem.Statistics stats)Constructs a new stream for reading a file from HDFS.HdfsFileInputStream(alluxio.client.file.FileSystem fs, alluxio.AlluxioURI uri, org.apache.hadoop.fs.FileSystem.Statistics stats)Constructs a new stream for reading a file from HDFS.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasCapability(java.lang.String capability)voidunbuffer()-
Methods inherited from class alluxio.hadoop.BaseHdfsFileInputStream
available, close, getPos, read, read, read, read, read, readFully, readFully, seek, seekToNewSource, skip
-
-
-
-
Constructor Detail
-
HdfsFileInputStream
public HdfsFileInputStream(alluxio.client.file.FileSystem fs, alluxio.AlluxioURI uri, org.apache.hadoop.fs.FileSystem.Statistics stats) throws java.io.IOExceptionConstructs a new stream for reading a file from HDFS.- Parameters:
fs- the file systemuri- the Alluxio file URIstats- filesystem statistics- Throws:
java.io.IOException
-
HdfsFileInputStream
public HdfsFileInputStream(alluxio.client.file.FileInStream inputStream, org.apache.hadoop.fs.FileSystem.Statistics stats)Constructs a new stream for reading a file from HDFS.- Parameters:
inputStream- the input streamstats- filesystem statistics
-
-