The difference between HSSF,XSSF and SXSSF

Source: Internet
Author: User

HSSF is a pure Java implementation of POI Engineering for Excel 97 (-2007) file Operations
XSSF is a pure Java implementation of the POI Project for Excel OOXML (. xlsx) file Operations

starting with the POI 3.8 release, a low-memory-based API for XSSF is provided----SXSSF

SXSSF has a sliding window to limit access to the number of rows to reach a low memory footprint, and XSSF can access all lines. The old row data no longer appears in the sliding window and becomes inaccessible while writing to disk.
in Auto-refresh mode, you can specify the number of Access row in the window to maintain a certain number of row in memory. When this quantity is reached, the new row data is generated in the window and the low-index data is moved from the window to the disk.
Alternatively, the number of rows in the sliding window can be set to automatically grow. It can be modified according to a definite flushrow (int keeprows) call based on the desired period.

Note: For SXSSF Beta 3.8, there will be temporary files generated, such as:
Poi-sxssf-sheet4654655121378979321.xml
File Location: Java.io.tmpdir location under this environment variable
Under Windows 7 is C:\Users\xxxxxAppData\Local\Temp
Under Linux is/var/tmp/
Depending on the actual situation, see if you want to delete these temporary files


The official also offers some solutions:
https://issues.apache.org/bugzilla/show_bug.cgi?id=53493

comparison with the XSSF
at a point in time, only a certain amount of data can be accessed
no longer supports Sheet.clone ()
formulas are no longer supported for evaluation



Feature Summary

The difference between HSSF,XSSF and SXSSF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.