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

Reusable Streams #302

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

Reusable Streams #302

Max-Meldrum opened this issue Jan 24, 2022 · 0 comments
Labels
domain: api Anything related to the Arcon API epic feature

Comments

@Max-Meldrum
Copy link
Member

Introduce capability of reusing Streams.

let mut app = Application::with_conf(conf);
let source_stream = app.iterator((0..1000000).map(|x| Event { id: x, data: 1.5 }), |conf| {
  conf.set_timestamp_extractor(|x: &Event| x.id);
});  
let s1 = source_stream.map(|x| x+ 10);
let s2 = source_stream.flatmap(|x| 0..x);
@Max-Meldrum Max-Meldrum added feature domain: api Anything related to the Arcon API epic labels Jan 24, 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 epic feature
Projects
None yet
Development

No branches or pull requests

1 participant