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 conditions
(此类执行 D* 计算。它接受一个 IDStarAlgorithm 对象并使用它来计算结果值。迭代数据库并根据条件集检查条目在此处完成。 TODO: - 通配符?和 * 在字符串条件中 - 用作条件)
Modifier and Type | Class and Description |
---|---|
static class |
DStarRunner.DStarAlgorithmEnum
Enum for convenience to identify and source implementations of the D* functions
(枚举以便于识别和获取 D* 函数的实现)
|
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)
see
Function.evaluate(ValueEval[], int, int)
(见 Function.evaluate(ValueEval[], int, int))
|
ValueEval |
evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) |
public DStarRunner(DStarRunner.DStarAlgorithmEnum algorithm)
algorithm
- to implement
(算法 - 实现)
public 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
.
(args - 评估的函数参数。空值用 BlankEval 或 MissingArgEval 表示,绝不为 null。)
srcRowIndex
- row index of the cell containing the formula under evaluation
(srcRowIndex - 包含计算公式的单元格的行索引)
srcColumnIndex
- column index of the cell containing the formula under evaluation
(srcColumnIndex - 包含正在评估的公式的单元格的列索引)
ErrorEval
, 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
.
(评估结果,可能是 ErrorEval,绝不为空。注意 - Excel 使用错误代码 #NUM!而不是 IEEE NaN,因此当数值函数计算为 Double.NaN 时,请务必将结果转换为 ErrorEval.NUM_ERROR。)
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval database, ValueEval filterColumn, ValueEval conditionDatabase)
Function3Arg
Function.evaluate(ValueEval[], int, int)
(见 Function.evaluate(ValueEval[], int, int))
evaluate
in interface
Function3Arg
(在接口 Function3Arg 中求值)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.