Commit 8834532a authored by Matija Obreza's avatar Matija Obreza

Added "Skip rows" and read progress indicator

parent dfe849ef
......@@ -61,14 +61,15 @@ public class MsAccessRowReader implements RowReader {
/// This is called in case data starts beyond 1st row
@Override
public void setSkipRows(int skipRows) {
_log.info("Skipping rows {}", skipRows);
// The -1 is because CSV and Excel include the header row in the count
_log.info("Skipping rows {}", skipRows - 1);
cursor.reset();
// try {
// cursor.moveNextRows(skipRows);
// } catch (IOException e) {
// _log.error("Could not skip rows", e);
// }
try {
cursor.moveNextRows(skipRows - 1);
} catch (IOException e) {
_log.error("Could not skip rows", e);
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment