Bug 63659 - construct SXSSFSheet via SXSSFWorkbook and XSSFSheet
Summary: construct SXSSFSheet via SXSSFWorkbook and XSSFSheet
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: SXSSF (show other bugs)
Version: 4.0.0-FINAL
Hardware: PC
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2019-08-13 01:06 UTC by ni个小逗比
Modified: 2019-08-13 01:06 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description ni个小逗比 2019-08-13 01:06:33 UTC
Constractor of SXSSFSheet:
public SXSSFSheet(SXSSFWorkbook workbook, XSSFSheet xSheet) throws IOException {
        _workbook = workbook;
        _sh = xSheet;
        _writer = workbook.createSheetDataWriter();
        _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 .