Class DMax
- java.lang.Object
-
- org.apache.poi.ss.formula.functions.DMax
-
- All Implemented Interfaces:
IDStarAlgorithm
public final class DMax extends java.lang.Object implements IDStarAlgorithm
Implementation of the DMax function: Finds the maximum value of a column in an area with given conditions. TODO: - wildcards ? and * in string conditions - functions as conditions
-
-
Constructor Summary
Constructors Constructor Description DMax()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueEvalgetResult()Return a result ValueEval that will be the result of the calculation.booleanprocessMatch(ValueEval eval)Process a match that is found during a run through a database.
-
-
-
Method Detail
-
processMatch
public boolean processMatch(ValueEval eval)
Description copied from interface:IDStarAlgorithmProcess a match that is found during a run through a database.- Specified by:
processMatchin interfaceIDStarAlgorithm- Parameters:
eval- ValueEval of the cell in the matching row. References will already be resolved.- Returns:
- Whether we should continue iterating through the database.
-
getResult
public ValueEval getResult()
Description copied from interface:IDStarAlgorithmReturn a result ValueEval that will be the result of the calculation. This is always called at the end of a run through the database.- Specified by:
getResultin interfaceIDStarAlgorithm- Returns:
- a ValueEval
-
-