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
- functions as conditions
| Modifier and Type | Class and Description |
|---|---|
| public static enum | DStarRunner.
Enum for convenience to identify and source implementations of the D* functions |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final DStarRunner. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueEval | evaluate(ValueEval[]
the evaluated function arguments. Empty values are represented with
args, int BlankEval or MissingArgEval, never null.row index of the cell containing the formula under evaluation srcRowIndex, int column index of the cell containing the formula under evaluation srcColumnIndex)Implements org.
|
| public ValueEval | evaluate(int srcRowIndex, int srcColumnIndex, ValueEval database, ValueEval filterColumn, ValueEval conditionDatabase)
Implements org. |
| private static boolean | Returns: Whether the row matches the conditions.Database. db, int The row in the database to check. row, AreaEval The condition database to use for checking. cdb)Checks a row in a database against a condition database. |
| private static int | Returns: Corresponding column number.Must not be a RefEval or AreaEval. Thus make sure resolveReference() is called on the value first! nameValueEval, AreaEval Database db)
|
| private static int | Returns: Corresponding column number.Database. db, String Column heading. name)For a given database returns the column number for a column heading. |
| private static Double | |
| private static ValueEval | Returns: A ValueEval that is a NumberEval, StringEval, BoolEval, BlankEval or ErrorEval.AreaEval from which the cell to resolve is retrieved. db, int Relative row in the AreaEval. dbRow, int Relative column in the AreaEval. dbCol)Resolve a ValueEval that's in an AreaEval. |
| private static boolean | Returns: Whether the condition holds.The value to check. value, ValueEval The condition to check for. condition)Test a value against a simple (< > <= >= = starts-with) condition string. |
| private static boolean | Returns: whether the condition holds.Value to check. valueEval, DStarRunner.Comparator to use. op,Value to check against. condition)Test whether a value matches a numeric condition. |
| algoType | back to summary |
|---|---|
| private final DStarRunner. | |
| DStarRunner | back to summary |
|---|---|
public DStarRunner(DStarRunner.
| |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) Implements org.
| |
| evaluate | back to summary |
|---|---|
| public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval database, ValueEval filterColumn, ValueEval conditionDatabase) Implements org. Doc from org. | |
| fulfillsConditions | back to summary |
|---|---|
| private static boolean fulfillsConditions(AreaEval db, int row, AreaEval cdb) throws EvaluationException Checks a row in a database against a condition database.
| |
| getColumnForName | back to summary |
|---|---|
private static int getColumnForName(ValueEval nameValueEval, AreaEval db) throws EvaluationException
| |
| getColumnForString | back to summary |
|---|---|
| private static int getColumnForString(AreaEval db, String name) For a given database returns the column number for a column heading. Comparison is case-insensitive. | |
| getNumberFromValueEval | back to summary |
|---|---|
| private static Double getNumberFromValueEval(ValueEval value) | |
| resolveReference | back to summary |
|---|---|
| private static ValueEval resolveReference(AreaEval db, int dbRow, int dbCol) Resolve a ValueEval that's in an AreaEval. | |
| testNormalCondition | back to summary |
|---|---|
| private static boolean testNormalCondition(ValueEval value, ValueEval condition) throws EvaluationException Test a value against a simple (< > <= >= = starts-with) condition string.
| |
| testNumericCondition | back to summary |
|---|---|
| private static boolean testNumericCondition(ValueEval valueEval, DStarRunner. Test whether a value matches a numeric condition.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IDStarAlgorithm | |
| public static DStarRunner. | |
| public static DStarRunner. |
| DAVERAGE | back to summary |
|---|---|
public static final DStarRunner.
| |
| DCOUNT | back to summary |
|---|---|
public static final DStarRunner.
| |
| DCOUNTA | back to summary |
|---|---|
public static final DStarRunner.
| |
| DGET | back to summary |
|---|---|
public static final DStarRunner.
| |
| DMAX | back to summary |
|---|---|
public static final DStarRunner.
| |
| DMIN | back to summary |
|---|---|
public static final DStarRunner.
| |
| DPRODUCT | back to summary |
|---|---|
public static final DStarRunner.
| |
| DSTDEV | back to summary |
|---|---|
public static final DStarRunner.
| |
| DSTDEVP | back to summary |
|---|---|
public static final DStarRunner.
| |
| DSUM | back to summary |
|---|---|
public static final DStarRunner.
| |
| DVAR | back to summary |
|---|---|
public static final DStarRunner.
| |
| DVARP | back to summary |
|---|---|
public static final DStarRunner.
| |
| implSupplier | back to summary |
|---|---|
| private final Supplier<IDStarAlgorithm> implSupplier | |
| DStarAlgorithmEnum | back to summary |
|---|---|
| private DStarAlgorithmEnum(Supplier<IDStarAlgorithm> implSupplier) | |
| newInstance | back to summary |
|---|---|
public IDStarAlgorithm newInstance()
| |
| valueOf | back to summary |
|---|---|
| public static DStarRunner. | |
| values | back to summary |
|---|---|
| public static DStarRunner. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. | |
| public static final DStarRunner. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DStarRunner. | |
| public static DStarRunner. |
| equal | back to summary |
|---|---|
| public static final DStarRunner. | |
| largerEqualThan | back to summary |
|---|---|
| public static final DStarRunner. | |
| largerThan | back to summary |
|---|---|
| public static final DStarRunner. | |
| smallerEqualThan | back to summary |
|---|---|
| public static final DStarRunner. | |
| smallerThan | back to summary |
|---|---|
| public static final DStarRunner. | |
| operator | back to summary |
|---|---|
| private operator() | |
| valueOf | back to summary |
|---|---|
| public static DStarRunner. | |
| values | back to summary |
|---|---|
| public static DStarRunner. | |