@NotThreadSafe public class HdfsFileInputStream extends BaseHdfsFileInputStream implements org.apache.hadoop.fs.CanUnbuffer, org.apache.hadoop.fs.StreamCapabilities
HdfsFileInputStream with
CanUnbuffer and StreamCapabilities support.mInputStream| Constructor and Description |
|---|
HdfsFileInputStream(FileInStream inputStream,
org.apache.hadoop.fs.FileSystem.Statistics stats)
Constructs a new stream for reading a file from HDFS.
|
HdfsFileInputStream(FileSystem fs,
AlluxioURI uri,
org.apache.hadoop.fs.FileSystem.Statistics stats)
Constructs a new stream for reading a file from HDFS.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasCapability(java.lang.String capability) |
void |
unbuffer() |
public HdfsFileInputStream(FileSystem fs, AlluxioURI uri, org.apache.hadoop.fs.FileSystem.Statistics stats) throws java.io.IOException
fs - the file systemuri - the Alluxio file URIstats - filesystem statisticsjava.io.IOExceptionpublic HdfsFileInputStream(FileInStream inputStream, org.apache.hadoop.fs.FileSystem.Statistics stats)
inputStream - the input streamstats - filesystem statisticsCopyright © 2024. All Rights Reserved.