Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support simple hasMatch operation for faster processing #68

Open
collinlee opened this issue Feb 20, 2020 · 2 comments
Open

Support simple hasMatch operation for faster processing #68

collinlee opened this issue Feb 20, 2020 · 2 comments

Comments

@collinlee
Copy link

Wondering if in the Scanner class we could simply have a matches method that returns boolean depending on whether or not there are matches. It would be similar to scan, but not bother building the List of match expressions to return.

@gliwka
Copy link
Owner

gliwka commented Feb 28, 2020

Sounds good, will take this up for the next release!

@mikolajpod
Copy link

Adding this method will cover 2 cases.
IMHO better way is to expose
public void scan(Database db, String input, HyperscanLibrary.match_event_handler handler)
method which will handle all use cases by providing custom match handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants