ValueMatcher
Defined in: src/dataframe/row.ts:139
Value matcher. See usage example: https://public.datagrok.ai/js/samples/data-frame/value-matching/value-matcher
Constructors
Constructor
new ValueMatcher(
dart):ValueMatcher
Defined in: src/dataframe/row.ts:144
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
ValueMatcher
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
supportedTypes | static | string[] | src/dataframe/row.ts:140 |
Accessors
operator
Get Signature
get operator():
string
Defined in: src/dataframe/row.ts:178
Operation (such as '<', 'EQUALS', 'BEFORE', etc).
Returns
string
pattern
Get Signature
get pattern():
string
Defined in: src/dataframe/row.ts:175
Expression as entered by user (such as '>42')
Returns
string
Methods
match()
match(
value):boolean
Defined in: src/dataframe/row.ts:182
Whether [x] passes the filter specified by the [expression]. See also validate for the explanation.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
boolean
validate()
validate(
value):string|null
Defined in: src/dataframe/row.ts:185
Validates the specified conditions. Returns null, if valid, error string otherwise
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
string | null
bool()
staticbool(pattern):ValueMatcher
Defined in: src/dataframe/row.ts:172
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
ValueMatcher
dateTime()
staticdateTime(pattern):ValueMatcher
Defined in: src/dataframe/row.ts:171
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
ValueMatcher
forColumn()
staticforColumn(column,pattern):ValueMatcher
Defined in: src/dataframe/row.ts:147
Creates a matcher for the specified column.
Parameters
| Parameter | Type |
|---|---|
column | Column |
pattern | string |
Returns
ValueMatcher
forType()
staticforType(type,pattern):ValueMatcher
Defined in: src/dataframe/row.ts:152
Creates a matcher for the specified data type.
Parameters
| Parameter | Type |
|---|---|
type | string |
pattern | string |
Returns
ValueMatcher
numerical()
staticnumerical(pattern):ValueMatcher
Defined in: src/dataframe/row.ts:169
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
ValueMatcher
string()
staticstring(pattern):ValueMatcher
Defined in: src/dataframe/row.ts:170
Parameters
| Parameter | Type |
|---|---|
pattern | string |
Returns
ValueMatcher