Package org.apache.poi.xssf.streaming
Class SXSSFFormulaEvaluator
- java.lang.Object
-
- org.apache.poi.ss.formula.BaseFormulaEvaluator
-
- org.apache.poi.xssf.usermodel.BaseXSSFFormulaEvaluator
-
- org.apache.poi.xssf.streaming.SXSSFFormulaEvaluator
-
- All Implemented Interfaces:
WorkbookEvaluatorProvider,FormulaEvaluator
public final class SXSSFFormulaEvaluator extends BaseXSSFFormulaEvaluator
Streaming-specific Formula Evaluator, which is able to lookup cells within the current Window.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSXSSFFormulaEvaluator.RowFlushedExceptionstatic classSXSSFFormulaEvaluator.SheetsFlushedException
-
Field Summary
-
Fields inherited from class org.apache.poi.ss.formula.BaseFormulaEvaluator
_bookEvaluator
-
-
Constructor Summary
Constructors Constructor Description SXSSFFormulaEvaluator(SXSSFWorkbook workbook)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SXSSFFormulaEvaluatorcreate(SXSSFWorkbook workbook, IStabilityClassifier stabilityClassifier, UDFFinder udfFinder)voidevaluateAll()Loops over rows and cells, evaluating formula cells there.static voidevaluateAllFormulaCells(SXSSFWorkbook wb, boolean skipOutOfWindow)For active worksheets only, will loop over rows and cells, evaluating formula cells there.SXSSFCellevaluateInCell(Cell cell)voidnotifyDeleteCell(Cell cell)voidnotifySetFormula(Cell cell)voidnotifyUpdateCell(Cell cell)protected EvaluationCelltoEvaluationCell(Cell cell)Turns a SXSSFCell into a SXSSFEvaluationCell-
Methods inherited from class org.apache.poi.xssf.usermodel.BaseXSSFFormulaEvaluator
createRichTextString, evaluateFormulaCellValue, setCellType
-
Methods inherited from class org.apache.poi.ss.formula.BaseFormulaEvaluator
_getWorkbookEvaluator, clearAllCachedResultValues, evaluate, evaluateAllFormulaCells, evaluateAllFormulaCells, evaluateFormulaCell, getEvaluationWorkbook, setCellType, setCellValue, setDebugEvaluationOutputForNextEval, setIgnoreMissingWorkbooks, setupEnvironment, setupReferencedWorkbooks
-
-
-
-
Constructor Detail
-
SXSSFFormulaEvaluator
public SXSSFFormulaEvaluator(SXSSFWorkbook workbook)
-
-
Method Detail
-
create
public static SXSSFFormulaEvaluator create(SXSSFWorkbook workbook, IStabilityClassifier stabilityClassifier, UDFFinder udfFinder)
- Parameters:
stabilityClassifier- used to optimise caching performance. Passnullfor the (conservative) assumption that any cell may have its definition changed after evaluation begins.udfFinder- passnullfor default (AnalysisToolPak only)
-
notifySetFormula
public void notifySetFormula(Cell cell)
-
notifyDeleteCell
public void notifyDeleteCell(Cell cell)
-
notifyUpdateCell
public void notifyUpdateCell(Cell cell)
-
toEvaluationCell
protected EvaluationCell toEvaluationCell(Cell cell)
Turns a SXSSFCell into a SXSSFEvaluationCell- Specified by:
toEvaluationCellin classBaseXSSFFormulaEvaluator
-
evaluateInCell
public SXSSFCell evaluateInCell(Cell cell)
- Specified by:
evaluateInCellin interfaceFormulaEvaluator- Overrides:
evaluateInCellin classBaseFormulaEvaluator
-
evaluateAllFormulaCells
public static void evaluateAllFormulaCells(SXSSFWorkbook wb, boolean skipOutOfWindow)
For active worksheets only, will loop over rows and cells, evaluating formula cells there. If formula cells are outside the window for that sheet, it can either skip them silently, or give an exception
-
evaluateAll
public void evaluateAll()
Loops over rows and cells, evaluating formula cells there. If any sheets are inactive, or any cells outside of the window, will give an Exception. For SXSSF, you generally don't want to use this method, instead evaluate your formulas as you go before they leave the window.
-
-