Class SXSSFFormulaEvaluator

    • 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. Pass null for the (conservative) assumption that any cell may have its definition changed after evaluation begins.
        udfFinder - pass null for default (AnalysisToolPak only)
      • notifySetFormula

        public void notifySetFormula​(Cell cell)
      • notifyDeleteCell

        public void notifyDeleteCell​(Cell cell)
      • notifyUpdateCell

        public void notifyUpdateCell​(Cell cell)
      • 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.