Bug 63304 - SXSSFRow.getRowNum() return -1
Summary: SXSSFRow.getRowNum() return -1
Alias: None
Product: POI
Classification: Unclassified
Component: SXSSF (show other bugs)
Version: 4.0.0-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2019-04-01 03:30 UTC by ni个小逗比
Modified: 2019-04-23 20:39 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description ni个小逗比 2019-04-01 03:30:15 UTC
when I init the SXSSFWorkbook with rowAccessWindowSize,set it to 100.if I call row0.getRowNum(),-1 will be returned when the row size exceed 100.
this code in SXSSFSheet : private final TreeMap<Integer,SXSSFRow> _rows = new TreeMap<>();
the first row will be flushed to disk when row size exceed rowAccessWindowSize,and the _rows just remove the first row but nothing record . so when I call row0.getRowNum(),-1 returned.
Comment 1 Dominik Stadler 2019-04-03 21:35:47 UTC
Can you provide some sample code that shows the problem. Preferably as self-sufficient unit-test?
Comment 2 Dominik Stadler 2019-04-23 20:39:20 UTC
No more information received and I don't see enough to reproduce an actual problem easily, so we cannot work on this for now. 

Please reopen this ticket with more information if this is still a problem for you.