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

streamson-bin: terminate after first match #139

Open
shenek opened this issue Nov 13, 2020 · 4 comments
Open

streamson-bin: terminate after first match #139

shenek opened this issue Nov 13, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@shenek
Copy link
Owner

shenek commented Nov 13, 2020

No description provided.

@shenek shenek added this to the 7.0.0 milestone Nov 13, 2020
@shenek shenek self-assigned this Nov 13, 2020
@shenek shenek added the enhancement New feature or request label Nov 13, 2020
@shenek
Copy link
Owner Author

shenek commented Feb 20, 2021

perhaps terminate after n-th math would be more reasonable

@shenek
Copy link
Owner Author

shenek commented Feb 27, 2021

Probably the best way to implement it is via matcher property.

The question is what to do with the remaining input stream.
It can be terminated or read. Both situation make a bit sense.
If data came from a socket it would be wise to read it all so that socket can be reused.
If data came from a pipe it makes sense to close it immediately.

@shenek
Copy link
Owner Author

shenek commented Feb 27, 2021

Note that this can be also used do e.g. split even / odd records to multiple files / sockets / pipes

But there is one more thing to consider, currently.
trigger, extract strategy are actually hitting all matcher
while convert, filter will hit only the first matcher

@shenek shenek mentioned this issue Feb 27, 2021
@shenek shenek modified the milestones: 7.0.0, 7.1.0 Mar 5, 2021
@shenek shenek modified the milestones: 7.1.0, 7.2.0 Apr 30, 2021
@shenek
Copy link
Owner Author

shenek commented Apr 30, 2021

related to #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant