Interface HadoopInput
public interface HadoopInput
Static methods that return the InputStream/Reader of a HDFS/S3.
Local files, HTTP and FTP URLs are supported too.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic org.apache.parquet.io.InputFileReturns the Parquet's InputFile instance of a file path or URI.static BufferedReaderReturns the reader of a file path or URI.static BufferedReaderReturns the reader of a file path or URI.static InputStreamReturns the reader of a file path or URI.
-
Method Details
-
reader
Returns the reader of a file path or URI.- Parameters:
path- the input file path.- Returns:
- the file reader.
- Throws:
IOException- when fails to read the file.URISyntaxException- when the file path syntax is wrong.
-
reader
Returns the reader of a file path or URI.- Parameters:
path- the input file path.charset- the charset of file.- Returns:
- the file reader.
- Throws:
IOException- when fails to read the file.URISyntaxException- when the file path syntax is wrong.
-
stream
Returns the reader of a file path or URI.- Parameters:
path- the input file path.- Returns:
- the file input stream.
- Throws:
IOException- when fails to read the file.
-
file
Returns the Parquet's InputFile instance of a file path or URI.- Parameters:
path- the input file path.- Returns:
- Parquet's InputFile.
- Throws:
IOException- when fails to read the file.
-