NodeIdFilterBuilder

Methods

MethodDescription
containsReturns a filter expression that checks whether the string
ends_withReturns a filter expression that checks whether the string
fuzzy_searchReturns a filter expression that performs fuzzy matching
is_inReturns a filter expression that checks whether the node ID
is_not_inReturns a filter expression that checks whether the node ID
not_containsReturns a filter expression that checks whether the string
starts_withReturns a filter expression that checks whether the string

Method Details

contains

Signature: contains(value)

Returns a filter expression that checks whether the string representation of the node ID contains the given substring.

Parameters

NameTypeDefaultDescription
valuestr-Substring that must appear within the value.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating substring search.

ends_with

Signature: ends_with(value)

Returns a filter expression that checks whether the string representation of the node ID ends with the given suffix.

Parameters

NameTypeDefaultDescription
valuestr-Suffix to check for.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating suffix matching.

Signature: fuzzy_search(value, levenshtein_distance, prefix_match)

Returns a filter expression that performs fuzzy matching against the string representation of the node ID.

Uses a specified Levenshtein distance and optional prefix matching.

Parameters

NameTypeDefaultDescription
valuestr-String to approximately match against.
levenshtein_distanceint-Maximum allowed edit distance.
prefix_matchbool-If true, the value must also match as a prefix.

Returns

TypeDescription
filter.FilterExprA filter expression performing approximate text matching.

is_in

Signature: is_in(values)

Returns a filter expression that checks whether the node ID is contained within the specified iterable of IDs.

Parameters

NameTypeDefaultDescription
valueslist[int]-Iterable of node IDs to match against.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating membership.

is_not_in

Signature: is_not_in(values)

Returns a filter expression that checks whether the node ID is not contained within the specified iterable of IDs.

Parameters

NameTypeDefaultDescription
valueslist[int]-Iterable of node IDs to exclude.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating non-membership.

not_contains

Signature: not_contains(value)

Returns a filter expression that checks whether the string representation of the node ID does not contain the given substring.

Parameters

NameTypeDefaultDescription
valuestr-Substring that must not appear within the value.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating substring exclusion.

starts_with

Signature: starts_with(value)

Returns a filter expression that checks whether the string representation of the node ID starts with the given prefix.

Parameters

NameTypeDefaultDescription
valuestr-Prefix to check for.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating prefix matching.