I am using following api to read data from excel as a Table: https://jtablesaw.github.io/tablesaw/gettingstarted
The code is as follows:
XlsxReader reader = new XlsxReader();
XlsxReadOptions options = XlsxReadOptions.builder("excel/file_example_XLSX_10.xlsx").build();
try {
tab = reader.read(options);
// System.out.println(tab.print());
} catch (Exception e) {
e.printStackTrace();
}
The file file_example_XLSX_10.xlsx is around 120 mb in size and I am getting OutOfMemoryError.
Is there a way for me to read only specific columns from the file.