public class DataFrameReader extends Object
Constructor | Description |
---|---|
DataFrameReader(ReaderRegistry registry) |
Modifier and Type | Method | Description |
---|---|---|
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 |
csv(CsvReadOptions options) |
|
Table |
csv(CsvReadOptions.Builder options) |
|
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 |
<T extends ReadOptions> |
usingOptions(T options) |
|
Table |
usingOptions(ReadOptions.Builder builder) |
public DataFrameReader(ReaderRegistry registry)
public Table url(String url)
usingOptions
to use non-default optionspublic Table url(URL url)
usingOptions
to use non-default optionspublic Table string(String s, String fileExtension)
usingOptions
to use
non-default optionspublic Table file(String file)
usingOptions
to use non-default optionspublic Table file(File file)
usingOptions
to use non-default optionspublic <T extends ReadOptions> Table usingOptions(T options)
public Table usingOptions(ReadOptions.Builder builder)
public Table db(ResultSet resultSet) throws SQLException
SQLException
public Table db(ResultSet resultSet, String tableName) throws SQLException
SQLException
public Table csv(InputStream stream)
public Table csv(InputStream stream, String name)
public Table csv(CsvReadOptions.Builder options)
public Table csv(CsvReadOptions options)
Copyright © 2022. All rights reserved.