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) throws IOException
usingOptions
to use non-default optionsIOException
public Table url(URL url) throws IOException
usingOptions
to use non-default optionsIOException
public Table string(String s, String fileExtension)
usingOptions
to use
non-default optionspublic Table file(String file) throws IOException
usingOptions
to use non-default optionsIOException
public Table file(File file) throws IOException
usingOptions
to use non-default optionsIOException
public <T extends ReadOptions> Table usingOptions(T options) throws IOException
IOException
public Table usingOptions(ReadOptions.Builder builder) throws IOException
IOException
public Table db(ResultSet resultSet) throws SQLException
SQLException
public Table db(ResultSet resultSet, String tableName) throws SQLException
SQLException
public Table csv(String file) throws IOException
IOException
public Table csv(File file) throws IOException
IOException
public Table csv(InputStream stream) throws IOException
IOException
public Table csv(URL url) throws IOException
IOException
public Table csv(InputStream stream, String name) throws IOException
IOException
public Table csv(Reader reader) throws IOException
IOException
public Table csv(CsvReadOptions.Builder options) throws IOException
IOException
public Table csv(CsvReadOptions options) throws IOException
IOException
Copyright © 2021. All rights reserved.