EdgeEndpointIdFilter

Filters an edge endpoint by its node ID.

This builder produces FilterExpr predicates over the source or destination endpoint of an edge (depending on where it was obtained).

Methods

MethodDescription
containsChecks whether the string representation of the endpoint ID contains the given substring.
ends_withChecks whether the string representation of the endpoint ID ends with the given suffix.
fuzzy_searchPerforms fuzzy matching against the string representation of the endpoint ID.
is_inChecks whether the endpoint ID is contained within the specified iterable of IDs.
is_not_inChecks whether the endpoint ID is not contained within the specified iterable of IDs.
not_containsChecks whether the string representation of the endpoint ID does not contain the given substring.
starts_withChecks whether the string representation of the endpoint ID starts with the given prefix.

Method Details

contains

Signature: contains(value)

Checks whether the string representation of the endpoint ID contains the given substring.

Parameters

NameTypeDefaultDescription
valuestr-Substring to search for.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating substring search.

ends_with

Signature: ends_with(value)

Checks whether the string representation of the endpoint 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)

Performs fuzzy matching against the string representation of the endpoint ID.

Uses a specified Levenshtein distance and optional prefix matching.

Parameters

NameTypeDefaultDescription
valuestr-String to approximately match against.
levenshtein_distanceint-Maximum allowed Levenshtein distance.
prefix_matchbool-Whether to require a matching prefix.

Returns

TypeDescription
filter.FilterExprA filter expression performing approximate text matching.

is_in

Signature: is_in(values)

Checks whether the endpoint 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)

Checks whether the endpoint 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)

Checks whether the string representation of the endpoint ID does not contain the given substring.

Parameters

NameTypeDefaultDescription
valuestr-Substring to exclude.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating substring exclusion.

starts_with

Signature: starts_with(value)

Checks whether the string representation of the endpoint ID starts with the given prefix.

Parameters

NameTypeDefaultDescription
valuestr-Prefix to check for.

Returns

TypeDescription
filter.FilterExprA filter expression evaluating prefix matching.