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

FilterMap Operator #298

Open
Max-Meldrum opened this issue Jan 10, 2022 · 0 comments
Open

FilterMap Operator #298

Max-Meldrum opened this issue Jan 10, 2022 · 0 comments
Labels
domain: api Anything related to the Arcon API feature good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Max-Meldrum
Copy link
Member

An Operator that both filters and maps.

Akin to Rust's own FilterMap but on a Stream rather than Iterator.

let strings = ["1", "two", "NaN", "four", "5"];
let mut app = Application::default()
  .iterator(strings, |conf| {
     conf.set_arcon_time(ArconTime::Process);
  })
  .filter_map(|s| s.parse().ok())
  .build();
@Max-Meldrum Max-Meldrum added good first issue Good for newcomers feature domain: api Anything related to the Arcon API labels Jan 10, 2022
@Max-Meldrum Max-Meldrum added the help wanted Extra attention is needed label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: api Anything related to the Arcon API feature good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant