You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2019/08/13 01:06:33 UTC

[Bug 63659] New: construct SXSSFSheet via SXSSFWorkbook and XSSFSheet

https://bz.apache.org/bugzilla/show_bug.cgi?id=63659

            Bug ID: 63659
           Summary: construct SXSSFSheet via SXSSFWorkbook and XSSFSheet
           Product: POI
           Version: 4.0.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SXSSF
          Assignee: dev@poi.apache.org
          Reporter: 631359746@qq.com
  Target Milestone: ---

Constractor of SXSSFSheet:
public SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet xSheet) throws IOException
{
        _workbook = workbook;
        _sh = xSheet;
        _writer = workbook.createSheetDataWriter();
        setRandomAccessWindowSize(_workbook.getRandomAccessWindowSize());
        _autoSizeColumnTracker = new AutoSizeColumnTracker(this);
    }

Fields of SXSSFWorkbook :
private final Map<SXSSFSheet,XSSFSheet> _sxFromXHash = new HashMap<>();
private final Map<XSSFSheet,SXSSFSheet> _xFromSxHash = new HashMap<>();

When call the constractor of SXSSFSheet, has to deal with the fields of
SXSSFWorkbook ,_sxFromXHash and _xFromSxHash .

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 63659] construct SXSSFSheet via SXSSFWorkbook and XSSFSheet

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63659

--- Comment #2 from ni个小逗比 <63...@qq.com> ---
(In reply to Dominik Stadler from comment #1)
> Sorry, but I don't really understand the actual issue, can you describe in
> some more detail what you think is wrong or should be changed?

if we have a XSSFSheet , and want to get a SXSSFSheet, so we would invoke the
constractor of SXSSFSheet : public SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet
xSheet) throws IOException . and then we do this : SXSSFWorkbook#getSheetAt(i),
will return null , because of the method SXSSFWorkbook#registerSheetMapping do
not invoked

so we shoud call SXSSFWorkbook#registerSheetMapping when we invoke the
constractor of SXSSFSheet : public SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet
xSheet) throws IOException .

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 63659] construct SXSSFSheet via SXSSFWorkbook and XSSFSheet

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63659

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
           Severity|normal                      |enhancement
                 OS|                            |All

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Sorry, but I don't really understand the actual issue, can you describe in some
more detail what you think is wrong or should be changed?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org