Class DCount
java.lang.Object
org.apache.poi.ss.formula.functions.DCount
- All Implemented Interfaces:
IDStarAlgorithm
Implementation of the DCount function:
Counts the number of numeric cells in a column in an area with given conditions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the field value (the 2nd param in DCOUNT, DGET, etc.) can evaluate to empty.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.
-
Constructor Details
-
DCount
public DCount()
-
-
Method Details
-
processMatch
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
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
-
allowEmptyMatchField
public boolean allowEmptyMatchField()Description copied from interface:IDStarAlgorithmWhether the field value (the 2nd param in DCOUNT, DGET, etc.) can evaluate to empty. It is allowed to evaluate to empty for DCOUNT.- Specified by:
allowEmptyMatchFieldin interfaceIDStarAlgorithm- Returns:
- whether the field value can evaluate to empty
-