Skip to main content

ValueMatcher

Value matcher. See usage example: https://public.datagrok.ai/js/samples/data-frame/value-matching/value-matcher

Constructors

new ValueMatcher()

new ValueMatcher(dart): ValueMatcher

Parameters

ParameterType
dartany

Returns

ValueMatcher

Source

src/dataframe.ts:1500

Properties

PropertyModifierTypeDefault value
dartprivateanyundefined
supportedTypesstaticstring[]...

Accessors

operator

get operator(): string

Operation (such as '<', 'EQUALS', 'BEFORE', etc).

Returns

string

Source

src/dataframe.ts:1534


pattern

get pattern(): string

Expression as entered by user (such as '>42')

Returns

string

Source

src/dataframe.ts:1531

Methods

match()

match(value): boolean

Whether [x] passes the filter specified by the [expression]. See also validate for the explanation.

Parameters

ParameterType
valueany

Returns

boolean

Source

src/dataframe.ts:1538


validate()

validate(value): null | string

Validates the specified conditions. Returns null, if valid, error string otherwise

Parameters

ParameterType
valueany

Returns

null | string

Source

src/dataframe.ts:1541


bool()

static bool(pattern): ValueMatcher

Parameters

ParameterType
patternstring

Returns

ValueMatcher

Source

src/dataframe.ts:1528


dateTime()

static dateTime(pattern): ValueMatcher

Parameters

ParameterType
patternstring

Returns

ValueMatcher

Source

src/dataframe.ts:1527


forColumn()

static forColumn(column, pattern): ValueMatcher

Creates a matcher for the specified column.

Parameters

ParameterType
columnColumn<any, any>
patternstring

Returns

ValueMatcher

Source

src/dataframe.ts:1503


forType()

static forType(type, pattern): ValueMatcher

Creates a matcher for the specified data type.

Parameters

ParameterType
typestring
patternstring

Returns

ValueMatcher

Source

src/dataframe.ts:1508


numerical()

static numerical(pattern): ValueMatcher

Parameters

ParameterType
patternstring

Returns

ValueMatcher

Source

src/dataframe.ts:1525


string()

static string(pattern): ValueMatcher

Parameters

ParameterType
patternstring

Returns

ValueMatcher

Source

src/dataframe.ts:1526