| Modifier and Type | Method and Description |
|---|---|
static HadoopInputFile |
fromPath(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
static HadoopInputFile |
fromPathUnchecked(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
static HadoopInputFile |
fromStatus(org.apache.hadoop.fs.FileStatus stat,
org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
long |
getLength() |
org.apache.hadoop.fs.Path |
getPath() |
SeekableInputStream |
newStream()
Open the file.
|
String |
toString() |
public static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic static HadoopInputFile fromPathUnchecked(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
public static HadoopInputFile fromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.hadoop.fs.Path getPath()
public SeekableInputStream newStream() throws IOException
Uses FileSystem.openFile() so that
the existing FileStatus can be passed down: saves a HEAD request on cloud storage.
and ignored everywhere else.
newStream in interface InputFileInterruptedIOException - future was interruptedIOException - if something went wrongRuntimeException - any nested RTE thrownCopyright © 2024 The Apache Software Foundation. All rights reserved.