Skip to content

Add the Predicate class#131

Merged
dabico merged 6 commits intomasterfrom
feature/predicate
Feb 13, 2024
Merged

Add the Predicate class#131
dabico merged 6 commits intomasterfrom
feature/predicate

Conversation

@dabico
Copy link
Member

@dabico dabico commented Feb 13, 2024

This PR introduces a class dedicated to storing Query predicate conditions and data for a Pattern. Although this is currently not used in Node matching, the fact that we make this abstraction available to the users allows them to do so manually. I hope to implement the automatic matching similar to the Rust binding in one of the subsequent versions.

Also includes a nested subclass `Predicate.Step`,
along with the nested enum `Predicate.Step.Type`.
This involves:
- A new field `predicates` of type `List<Predicate>` in `Pattern`
- Adding a new constructor parameter in `Pattern`
- Updating the existing `Pattern` construction logic in `Query#Builder`
@dabico dabico merged commit 61acfa4 into master Feb 13, 2024
@dabico dabico deleted the feature/predicate branch February 13, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant