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(Reader reader) |
Table |
csv(String file) |
Table |
csv(String contents,
String tableName) |
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
withOptions 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
withOptions to use non-default options |
Table |
fixedWidth(File file) |
Table |
fixedWidth(FixedWidthReadOptions.Builder options) |
Table |
fixedWidth(FixedWidthReadOptions options) |
Table |
fixedWidth(InputStream stream) |
Table |
fixedWidth(Reader reader) |
Table |
fixedWidth(String file) |
Table |
html(tech.tablesaw.io.html.HtmlReadOptions options)
Modules that call this method must add the optional dependency tech.tablesaw:tablesaw-html
|
Table |
html(String url)
Modules that call this method must add the optional dependency tech.tablesaw:tablesaw-html
|
Table |
json(Reader contents,
String tableName)
Modules that call this method must add the optional dependency tech.tablesaw:tablesaw-json
|
Table |
json(String url)
Modules that call this method must add the optional dependency tech.tablesaw:tablesaw-json
|
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
withOptions 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
withOptions 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
withOptions to use non-default options |
Table |
usingOptions(ReadOptions.Builder builder) |
Table |
usingOptions(ReadOptions options) |
List<Table> |
xlsx(tech.tablesaw.io.xlsx.XlsxReadOptions.Builder options)
Modules that call this method must add the optional dependency tech.tablesaw:tablesaw-excel
|
List<Table> |
xlsx(tech.tablesaw.io.xlsx.XlsxReadOptions options)
Modules that call this method must add the optional dependency tech.tablesaw:tablesaw-excel
|
public DataFrameReader(ReaderRegistry registry)
public Table url(String url) throws IOException
withOptions to use non-default optionsIOExceptionpublic Table url(URL url) throws IOException
withOptions to use non-default optionsIOExceptionpublic Table string(String s, String fileExtension) throws IOException
withOptions to use non-default optionsIOExceptionpublic Table file(String file) throws IOException
withOptions to use non-default optionsIOExceptionpublic Table file(File file) throws IOException
withOptions to use non-default optionsIOExceptionpublic Table usingOptions(ReadOptions options) throws IOException
IOExceptionpublic Table usingOptions(ReadOptions.Builder builder) throws IOException
IOExceptionpublic Table csv(String file) throws IOException
IOExceptionpublic Table csv(File file) throws IOException
IOExceptionpublic Table csv(InputStream stream) throws IOException
IOExceptionpublic Table csv(Reader reader) throws IOException
IOExceptionpublic Table csv(CsvReadOptions.Builder options) throws IOException
IOExceptionpublic Table csv(CsvReadOptions options) throws IOException
IOExceptionpublic Table fixedWidth(String file) throws IOException
IOExceptionpublic Table fixedWidth(File file) throws IOException
IOExceptionpublic Table fixedWidth(InputStream stream) throws IOException
IOExceptionpublic Table fixedWidth(Reader reader) throws IOException
IOExceptionpublic Table fixedWidth(FixedWidthReadOptions.Builder options) throws IOException
IOExceptionpublic Table fixedWidth(FixedWidthReadOptions options) throws IOException
IOExceptionpublic Table db(ResultSet resultSet) throws SQLException
SQLExceptionpublic Table db(ResultSet resultSet, String tableName) throws SQLException
SQLExceptionpublic Table json(String url) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionpublic Table json(Reader contents, String tableName) throws IOException
IOExceptionpublic Table html(String url) throws IOException
IOExceptionpublic Table html(tech.tablesaw.io.html.HtmlReadOptions options) throws IOException
IOExceptionpublic List<Table> xlsx(tech.tablesaw.io.xlsx.XlsxReadOptions options) throws IOException
IOExceptionpublic List<Table> xlsx(tech.tablesaw.io.xlsx.XlsxReadOptions.Builder options) throws IOException
IOExceptionCopyright © 2019. All rights reserved.