NodeNameFilterBuilder
Methods
| Method | Description |
|---|---|
contains | Returns a filter expression that checks whether the entity's |
ends_with | Returns a filter expression that checks whether the entity's |
fuzzy_search | Returns a filter expression that performs fuzzy matching |
is_in | Returns a filter expression that checks whether the entity's |
is_not_in | Returns a filter expression that checks whether the entity's |
not_contains | Returns a filter expression that checks whether the entity's |
starts_with | Returns a filter expression that checks whether the entity's |
Method Details
contains
Signature: contains(value)
Returns a filter expression that checks whether the entity's string value contains the given substring.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | - | Substring that must appear within the value. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression evaluating substring search. |
ends_with
Signature: ends_with(value)
Returns a filter expression that checks whether the entity's string value ends with the specified suffix.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | - | Suffix to check for. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression evaluating suffix matching. |
fuzzy_search
Signature: fuzzy_search(value, levenshtein_distance, prefix_match)
Returns a filter expression that performs fuzzy matching against the entity's string value.
Uses a specified Levenshtein distance and optional prefix matching.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | - | String to approximately match against. |
levenshtein_distance | int | - | Maximum allowed edit distance. |
prefix_match | bool | - | If true, the value must also match as a prefix. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression performing approximate text matching. |
is_in
Signature: is_in(values)
Returns a filter expression that checks whether the entity's string value is contained within the given iterable of strings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
values | list[str] | - | Iterable of allowed string values. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression evaluating membership. |
is_not_in
Signature: is_not_in(values)
Returns a filter expression that checks whether the entity's string value is not contained within the given iterable of strings.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
values | list[str] | - | Iterable of string values to exclude. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression evaluating non-membership. |
not_contains
Signature: not_contains(value)
Returns a filter expression that checks whether the entity's string value does not contain the given substring.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | - | Substring that must not appear within the value. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression evaluating substring exclusion. |
starts_with
Signature: starts_with(value)
Returns a filter expression that checks whether the entity's string value starts with the specified prefix.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | - | Prefix to check for. |
Returns
| Type | Description |
|---|---|
filter.FilterExpr | A filter expression evaluating prefix matching. |