Package org.apache.poi.xssf.streaming
Class DeferredSXSSFSheet
java.lang.Object
org.apache.poi.xssf.streaming.SXSSFSheet
org.apache.poi.xssf.streaming.DeferredSXSSFSheet
- All Implemented Interfaces:
Iterable<Row>,Sheet,OoxmlSheetExtensions
A variant of SXSSFSheet that uses a
RowGeneratorFunction to lazily create rows.
This variant is experimental and APIs may change at short notice.- Since:
- 5.0.0
- See Also:
-
Field Summary
Fields inherited from interface org.apache.poi.ss.usermodel.Sheet
BottomMargin, FooterMargin, HeaderMargin, LeftMargin, PANE_LOWER_LEFT, PANE_LOWER_RIGHT, PANE_UPPER_LEFT, PANE_UPPER_RIGHT, RightMargin, TopMargin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUnsupported in DeferredSXSSFSheetvoidsetRowGenerator(RowGeneratorFunction rowGenerator) Add a function to generate rows for the sheet.voidwriteRows(OutputStream out) Methods inherited from class org.apache.poi.xssf.streaming.SXSSFSheet
addHyperlink, addMergedRegion, addMergedRegionUnsafe, addValidationData, areAllRowsFlushed, autoSizeColumn, autoSizeColumn, changeRowNum, createDrawingPatriarch, createFreezePane, createFreezePane, createRow, createSplitPane, createSplitPane, disableLocking, enableLocking, flushBufferedData, flushRows, flushRows, getActiveCell, getAutobreaks, getCellComment, getCellComments, getColumnBreaks, getColumnOutlineLevel, getColumnStyle, getColumnWidth, getColumnWidthInPixels, getDataValidationHelper, getDataValidations, getDefaultColumnWidth, getDefaultRowHeight, getDefaultRowHeightInPoints, getDisplayGuts, getDrawingPatriarch, getFirstRowNum, getFitToPage, getFooter, getForceFormulaRecalculation, getHeader, getHorizontallyCenter, getHyperlink, getHyperlink, getHyperlinkList, getLastFlushedRowNum, getLastRowNum, getLeftCol, getMargin, getMargin, getMergedRegion, getMergedRegions, getNumMergedRegions, getPaneInformation, getPhysicalNumberOfRows, getPrintSetup, getProtect, getRepeatingColumns, getRepeatingRows, getRow, getRowBreaks, getRowNum, getRowSumsBelow, getRowSumsRight, getScenarioProtect, getSheetConditionalFormatting, getSheetName, getTabColor, getTopRow, getTrackedColumnsForAutoSizing, getVerticallyCenter, getVMLDrawing, getWorkbook, groupColumn, groupRow, isColumnBroken, isColumnHidden, isColumnTrackedForAutoSizing, isDisplayFormulas, isDisplayGridlines, isDisplayRowColHeadings, isDisplayZeros, isPrintGridlines, isPrintRowAndColumnHeadings, isRightToLeft, isRowBroken, isSelected, lockAutoFilter, lockDeleteColumns, lockDeleteRows, lockFormatCells, lockFormatColumns, lockFormatRows, lockInsertColumns, lockInsertHyperlinks, lockInsertRows, lockObjects, lockPivotTables, lockScenarios, lockSelectLockedCells, lockSelectUnlockedCells, lockSort, protectSheet, removeArrayFormula, removeColumnBreak, removeMergedRegion, removeMergedRegions, removeRow, removeRowBreak, rowIterator, setActiveCell, setArrayFormula, setAutobreaks, setAutoFilter, setColumnBreak, setColumnGroupCollapsed, setColumnHidden, setColumnWidth, setDefaultColumnStyle, setDefaultColumnWidth, setDefaultRowHeight, setDefaultRowHeightInPoints, setDisplayFormulas, setDisplayGridlines, setDisplayGuts, setDisplayRowColHeadings, setDisplayZeros, setFitToPage, setForceFormulaRecalculation, setHorizontallyCenter, setMargin, setMargin, setPrintGridlines, setPrintRowAndColumnHeadings, setRandomAccessWindowSize, setRepeatingColumns, setRepeatingRows, setRightToLeft, setRowBreak, setRowGroupCollapsed, setRowOutlineLevel, setRowSumsBelow, setRowSumsRight, setSelected, setTabColor, setTabColor, setVerticallyCenter, setZoom, shiftColumns, shiftRows, shiftRows, showInPane, spliterator, trackAllColumnsForAutoSizing, trackColumnForAutoSizing, trackColumnsForAutoSizing, ungroupColumn, ungroupRow, untrackAllColumnsForAutoSizing, untrackColumnForAutoSizing, untrackColumnsForAutoSizing, validateMergedRegions
-
Constructor Details
-
DeferredSXSSFSheet
- Throws:
IOException
-
-
Method Details
-
getWorksheetXMLInputStream
Unsupported in DeferredSXSSFSheet- Overrides:
getWorksheetXMLInputStreamin classSXSSFSheet- Throws:
RuntimeException- this is unsupportedIOException
-
setRowGenerator
Add a function to generate rows for the sheet. This function should only create rows and cells. Any other settings like creating cell styles should be done in separate calls outside this function.- Parameters:
rowGenerator-RowGeneratorFunction
-
writeRows
- Throws:
IOException
-