Package org.apache.parquet.hadoop.util
Class HadoopInputFile
- java.lang.Object
-
- org.apache.parquet.hadoop.util.HadoopInputFile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromPathUnchecked(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.conf.Configuration conf)org.apache.hadoop.conf.ConfigurationgetConfiguration()longgetLength()org.apache.hadoop.fs.PathgetPath()SeekableInputStreamnewStream()Open the file.StringtoString()
-
-
-
Method Detail
-
fromPath
public static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
- Throws:
IOException
-
fromPathUnchecked
public static HadoopInputFile fromPathUnchecked(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
-
fromStatus
public static HadoopInputFile fromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.conf.Configuration conf) throws IOException
- Throws:
IOException
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
-
getPath
public org.apache.hadoop.fs.Path getPath()
-
newStream
public SeekableInputStream newStream() throws IOException
Open the file.Uses
FileSystem.openFile()so that the existing FileStatus can be passed down: saves a HEAD request on cloud storage. and ignored everywhere else.- Specified by:
newStreamin interfaceInputFile- Returns:
- the input stream.
- Throws:
InterruptedIOException- future was interruptedIOException- if something went wrongRuntimeException- any nested RTE thrown
-
-