Package tech.tablesaw.io
Class DataFrameReader
- java.lang.Object
-
- tech.tablesaw.io.DataFrameReader
-
public class DataFrameReader extends Object
-
-
Constructor Summary
Constructors Constructor Description DataFrameReader(ReaderRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 UseusingOptions
to use non-default optionsTable
file(String file)
Reads the given file into a table using default options Uses converter specified based on given file extension UseusingOptions
to use non-default optionsTable
string(String s, String fileExtension)
Reads the given string contents into a table using default options Uses converter specified based on given file extension UseusingOptions
to use non-default optionsTable
url(String url)
Reads the given URL into a table using default options Uses appropriate converter based on mime-type UseusingOptions
to use non-default optionsTable
url(URL url)
Reads the given URL into a table using default options Uses appropriate converter based on mime-type UseusingOptions
to use non-default options<T extends ReadOptions>
TableusingOptions(T options)
Table
usingOptions(ReadOptions.Builder builder)
-
-
-
Constructor Detail
-
DataFrameReader
public DataFrameReader(ReaderRegistry registry)
-
-
Method Detail
-
url
public Table url(String url)
Reads the given URL into a table using default options Uses appropriate converter based on mime-type UseusingOptions
to use non-default options
-
url
public Table url(URL url)
Reads the given URL into a table using default options Uses appropriate converter based on mime-type UseusingOptions
to use non-default options
-
string
public 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 UseusingOptions
to use non-default options
-
file
public Table file(String file)
Reads the given file into a table using default options Uses converter specified based on given file extension UseusingOptions
to use non-default options
-
file
public Table file(File file)
Reads the given file into a table using default options Uses converter specified based on given file extension UseusingOptions
to use non-default options
-
usingOptions
public <T extends ReadOptions> Table usingOptions(T options)
-
usingOptions
public Table usingOptions(ReadOptions.Builder builder)
-
db
public Table db(ResultSet resultSet) throws SQLException
- Throws:
SQLException
-
db
public Table db(ResultSet resultSet, String tableName) throws SQLException
- Throws:
SQLException
-
csv
public Table csv(InputStream stream)
-
csv
public Table csv(InputStream stream, String name)
-
csv
public Table csv(CsvReadOptions.Builder options)
-
csv
public Table csv(CsvReadOptions options)
-
-