Package smile.io
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
Modifier and TypeMethodDescriptionstatic org.apache.parquet.io.InputFile
Returns the Parquet's InputFile instance of a file path or URI.static BufferedReader
Returns the reader of a file path or URI.static BufferedReader
Returns the reader of a file path or URI.static InputStream
Returns 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.URISyntaxException
- when the file path syntax is wrong.
-
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.URISyntaxException
- when the file path syntax is wrong.
-