public class DataFrameReader extends Object
| Constructor and Description |
|---|
DataFrameReader(ReaderRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
Table |
csv(CsvReadOptions.Builder options) |
Table |
csv(CsvReadOptions options) |
Table |
csv(File file) |
Table |
csv(InputStream stream) |
Table |
csv(InputStream stream,
String name) |
Table |
csv(Reader reader) |
Table |
csv(String file) |
Table |
csv(String contents,
String tableName) |
Table |
csv(URL url) |
Table |
db(ResultSet resultSet) |
Table |
db(ResultSet resultSet,
String tableName) |
Table |
file(File file)
Reads the given file into a table using default options Uses converter specified based on given
file extension Use
usingOptions to use non-default options |
Table |
file(String file)
Reads the given file into a table using default options Uses converter specified based on given
file extension Use
usingOptions to use non-default options |
Table |
string(String s,
String fileExtension)
Reads the given string contents into a table using default options Uses converter specified
based on given file extension Use
usingOptions to use
non-default options |
Table |
url(String url)
Reads the given URL into a table using default options Uses appropriate converter based on
mime-type Use
usingOptions to use non-default options |
Table |
url(URL url)
Reads the given URL into a table using default options Uses appropriate converter based on
mime-type Use
usingOptions to use non-default options |
Table |
usingOptions(ReadOptions.Builder builder) |
<T extends ReadOptions> |
usingOptions(T options) |
public DataFrameReader(ReaderRegistry registry)
public Table url(String url) throws IOException
usingOptions to use non-default optionsIOExceptionpublic Table url(URL url) throws IOException
usingOptions to use non-default optionsIOExceptionpublic Table string(String s, String fileExtension)
usingOptions to use
non-default optionspublic Table file(String file) throws IOException
usingOptions to use non-default optionsIOExceptionpublic Table file(File file) throws IOException
usingOptions to use non-default optionsIOExceptionpublic <T extends ReadOptions> Table usingOptions(T options) throws IOException
IOExceptionpublic Table usingOptions(ReadOptions.Builder builder) throws IOException
IOExceptionpublic Table db(ResultSet resultSet) throws SQLException
SQLExceptionpublic Table db(ResultSet resultSet, String tableName) throws SQLException
SQLExceptionpublic Table csv(String file) throws IOException
IOExceptionpublic Table csv(File file) throws IOException
IOExceptionpublic Table csv(InputStream stream) throws IOException
IOExceptionpublic Table csv(URL url) throws IOException
IOExceptionpublic Table csv(InputStream stream, String name) throws IOException
IOExceptionpublic Table csv(Reader reader) throws IOException
IOExceptionpublic Table csv(CsvReadOptions.Builder options) throws IOException
IOExceptionpublic Table csv(CsvReadOptions options) throws IOException
IOExceptionCopyright © 2020. All rights reserved.