EdgeEndpointIdFilter
#
Bases: object
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).
Examples:
Edge.src().id() == 1 Edge.dst().id().is_in([1, 2, 3]) Edge.src().id().starts_with("user:")
__eq__(value)
#
Return self==value.
__ge__(value)
#
Return self>=value.
__gt__(value)
#
Return self>value.
__le__(value)
#
Return self<=value.
__lt__(value)
#
Return self<value.
__ne__(value)
#
Return self!=value.
contains(value)
#
Checks whether the string representation of the endpoint ID contains the given substring.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Substring to search for. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression evaluating substring search. |
ends_with(value)
#
Checks whether the string representation of the endpoint ID ends with the given suffix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Suffix to check for. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression evaluating suffix matching. |
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:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
String to approximately match against. |
required |
levenshtein_distance
|
int
|
Maximum allowed Levenshtein distance. |
required |
prefix_match
|
bool
|
Whether to require a matching prefix. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression performing approximate text matching. |
is_in(values)
#
Checks whether the endpoint ID is contained within the specified iterable of IDs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
values
|
list[int]
|
Iterable of node IDs to match against. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression evaluating membership. |
is_not_in(values)
#
Checks whether the endpoint ID is not contained within the specified iterable of IDs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
values
|
list[int]
|
Iterable of node IDs to exclude. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression evaluating non-membership. |
not_contains(value)
#
Checks whether the string representation of the endpoint ID does not contain the given substring.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Substring to exclude. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression evaluating substring exclusion. |
starts_with(value)
#
Checks whether the string representation of the endpoint ID starts with the given prefix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Prefix to check for. |
required |
Returns:
| Type | Description |
|---|---|
FilterExpr
|
A filter expression evaluating prefix matching. |