public final class SXSSFFormulaEvaluator extends BaseXSSFFormulaEvaluator
| Modifier and Type | Class and Description |
|---|---|
static class |
SXSSFFormulaEvaluator.RowFlushedException |
static class |
SXSSFFormulaEvaluator.SheetsFlushedException |
_bookEvaluator| Constructor and Description |
|---|
SXSSFFormulaEvaluator(SXSSFWorkbook workbook) |
| Modifier and Type | Method and Description |
|---|---|
static SXSSFFormulaEvaluator |
create(SXSSFWorkbook workbook,
IStabilityClassifier stabilityClassifier,
UDFFinder udfFinder) |
void |
evaluateAll()
Loops over rows and cells, evaluating formula cells there.
|
static void |
evaluateAllFormulaCells(SXSSFWorkbook wb,
boolean skipOutOfWindow)
For active worksheets only, will loop over rows and
cells, evaluating formula cells there.
|
SXSSFCell |
evaluateInCell(Cell cell)
If cell contains formula, it evaluates the formula, and
puts the formula result back into the cell, in place
of the old formula.
|
void |
notifyDeleteCell(Cell cell)
Should be called to tell the cell value cache that the specified cell has just become a
formula cell, or the formula text has changed
|
void |
notifySetFormula(Cell cell)
Should be called to tell the cell value cache that the specified (value or formula) cell
has changed.
|
void |
notifyUpdateCell(Cell cell)
Should be called to tell the cell value cache that the specified (value or formula) cell
has changed.
|
protected EvaluationCell |
toEvaluationCell(Cell cell)
Turns a SXSSFCell into a SXSSFEvaluationCell
|
createRichTextString, evaluateFormulaCellValue, setCellType_getWorkbookEvaluator, clearAllCachedResultValues, evaluate, evaluateAllFormulaCells, evaluateAllFormulaCells, evaluateFormulaCell, getEvaluationWorkbook, setCellType, setCellValue, setDebugEvaluationOutputForNextEval, setIgnoreMissingWorkbooks, setupEnvironment, setupReferencedWorkbookspublic SXSSFFormulaEvaluator(SXSSFWorkbook workbook)
public static SXSSFFormulaEvaluator create(SXSSFWorkbook workbook, IStabilityClassifier stabilityClassifier, UDFFinder udfFinder)
stabilityClassifier - used to optimise caching performance. Pass null
for the (conservative) assumption that any cell may have its definition changed after
evaluation begins.udfFinder - pass null for default (AnalysisToolPak only)public void notifySetFormula(Cell cell)
FormulaEvaluatorpublic void notifyDeleteCell(Cell cell)
FormulaEvaluatorpublic void notifyUpdateCell(Cell cell)
FormulaEvaluatorprotected EvaluationCell toEvaluationCell(Cell cell)
toEvaluationCell in class BaseXSSFFormulaEvaluatorpublic SXSSFCell evaluateInCell(Cell cell)
BaseFormulaEvaluatorCell is returned to
allow chained calls like:
int evaluatedCellType = evaluator.evaluateInCell(cell).getCellType();Be aware that your cell value will be changed to hold the result of the formula. If you simply want the formula value computed for you, use
BaseFormulaEvaluator.evaluateFormulaCell(Cell)}evaluateInCell in interface FormulaEvaluatorevaluateInCell in class BaseFormulaEvaluatorcell - The Cell to evaluate and modify.cell that was passed in, allowing for chained callspublic static void evaluateAllFormulaCells(SXSSFWorkbook wb, boolean skipOutOfWindow)
public void evaluateAll()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.