public final class DStarRunner extends java.lang.Object implements Function3Arg
IDStarAlgorithm
object and
uses it for calculating the result value. Iterating a database and checking the
entries against the set of conditions is done here.
TODO:
- wildcards ? and * in string conditions
- functions as conditionsModifier and Type | Class and Description |
---|---|
static class |
DStarRunner.DStarAlgorithmEnum
Enum for convenience to identify and source implementations of the D* functions
|
Constructor and Description |
---|
DStarRunner(DStarRunner.DStarAlgorithmEnum algorithm) |
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(int srcRowIndex,
int srcColumnIndex,
ValueEval database,
ValueEval filterColumn,
ValueEval conditionDatabase)
|
ValueEval |
evaluate(ValueEval[] args,
int srcRowIndex,
int srcColumnIndex) |
public DStarRunner(DStarRunner.DStarAlgorithmEnum algorithm)
algorithm
- to implementpublic final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
evaluate
in interface Function
args
- the evaluated function arguments. Empty values are represented with
BlankEval
or MissingArgEval
, never null
.srcRowIndex
- row index of the cell containing the formula under evaluationsrcColumnIndex
- column index of the cell containing the formula under evaluationErrorEval
, never null
.
Note - Excel uses the error code #NUM! instead of IEEE NaN, so when
numeric functions evaluate to Double.NaN
be sure to translate the result to ErrorEval.NUM_ERROR
.public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval database, ValueEval filterColumn, ValueEval conditionDatabase)
Function3Arg
evaluate
in interface Function3Arg
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.