A match field that tests a numeric row value against a set of candidate values using a comparison operator (gt, gte, lt or lte), where the candidate values are supplied by evaluating a kcode expression. Written as a "comparison" element inside a lookup-table definition.
Group: Queries
Extends: PersistedLookupTableField
Implements: MatchLookupTableField
Properties
| Property | Returns | Description |
|---|---|---|
| kcodeSource | String | The kcode expression that is evaluated to produce the candidate comparison values for this field. |
Inherited from PersistedLookupTableField
Properties
| Property | Returns | Description |
|---|---|---|
| column | int | The zero-based CSV column this field reads its value from. |
| name | String | The name of this field, used as the key when looking up match parameters and output values. |
| type | String | The data type of this field, corresponding to Field.getType. |
Methods
getName()
Returns: String
The name of this field, used as the key when looking up match parameters and output values.
getType()
Returns: String
The data type of this field, corresponding to Field.getType.
getColumn()
Returns: int
The zero-based CSV column this field reads its value from.
value(List row)
Returns: String
Reads this field's value from the given data row.
| Parameter | Description |
|---|---|
row | the CSV row to read from |
Methods
matches(List row, Map<String,Set<Object>> filterParams)
Returns: boolean
Tests whether the given row matches this field's constraint. A blank cell value is treated as unconstrained and always matches. Otherwise the row's numeric value is compared against each candidate value using this field's operator, but the computed comparison result is not currently returned, so this method always returns false once a candidate value set is present.
| Parameter | Description |
|---|---|
row | the data row to test |
filterParams | the candidate values for each match field, keyed by field name |
getKcodeSource()
Returns: String
The kcode expression that is evaluated to produce the candidate comparison values for this field.