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 Tablecsv(File file)Tablecsv(InputStream stream)Tablecsv(InputStream stream, String name)Tablecsv(Reader reader)Tablecsv(String file)Tablecsv(String contents, String tableName)Tablecsv(URL url)Tablecsv(CsvReadOptions options)Tablecsv(CsvReadOptions.Builder options)Tabledb(ResultSet resultSet)Tabledb(ResultSet resultSet, String tableName)Tablefile(File file)Reads the given file into a table using default options Uses converter specified based on given file extension UseusingOptionsto use non-default optionsTablefile(String file)Reads the given file into a table using default options Uses converter specified based on given file extension UseusingOptionsto use non-default optionsTablestring(String s, String fileExtension)Reads the given string contents into a table using default options Uses converter specified based on given file extension UseusingOptionsto use non-default optionsTableurl(String url)Reads the given URL into a table using default options Uses appropriate converter based on mime-type UseusingOptionsto use non-default optionsTableurl(URL url)Reads the given URL into a table using default options Uses appropriate converter based on mime-type UseusingOptionsto use non-default options<T extends ReadOptions>
TableusingOptions(T options)TableusingOptions(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 UseusingOptionsto 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 UseusingOptionsto 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 UseusingOptionsto 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 UseusingOptionsto 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 UseusingOptionsto 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)
-
-