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 optionsIOException
public Table url(URL url) throws IOException
withOptions
to use non-default optionsIOException
public Table string(String s, String fileExtension) throws IOException
withOptions
to use non-default optionsIOException
public Table file(String file) throws IOException
withOptions
to use non-default optionsIOException
public Table file(File file) throws IOException
withOptions
to use non-default optionsIOException
public Table usingOptions(ReadOptions options) throws IOException
IOException
public Table usingOptions(ReadOptions.Builder builder) throws IOException
IOException
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(Reader reader) throws IOException
IOException
public Table csv(CsvReadOptions.Builder options) throws IOException
IOException
public Table csv(CsvReadOptions options) throws IOException
IOException
public Table fixedWidth(String file) throws IOException
IOException
public Table fixedWidth(File file) throws IOException
IOException
public Table fixedWidth(InputStream stream) throws IOException
IOException
public Table fixedWidth(Reader reader) throws IOException
IOException
public Table fixedWidth(FixedWidthReadOptions.Builder options) throws IOException
IOException
public Table fixedWidth(FixedWidthReadOptions options) throws IOException
IOException
public Table db(ResultSet resultSet) throws SQLException
SQLException
public Table db(ResultSet resultSet, String tableName) throws SQLException
SQLException
public Table json(String url) throws MalformedURLException, IOException
MalformedURLException
IOException
public Table json(Reader contents, String tableName) throws IOException
IOException
public Table html(String url) throws IOException
IOException
public Table html(tech.tablesaw.io.html.HtmlReadOptions options) throws IOException
IOException
public List<Table> xlsx(tech.tablesaw.io.xlsx.XlsxReadOptions options) throws IOException
IOException
public List<Table> xlsx(tech.tablesaw.io.xlsx.XlsxReadOptions.Builder options) throws IOException
IOException
Copyright © 2019. All rights reserved.