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

DNM: Remove Container::Item #538

Closed
wants to merge 1 commit into from

Conversation

antiguru
Copy link
Member

It's not used, and unclear as to what it should communicate. Let's talk this over!

@@ -45,11 +45,11 @@ pub trait Reclock<S: Scope> {
/// assert_eq!(extracted[1], (5, vec![4,5]));
/// assert_eq!(extracted[2], (8, vec![6,7,8]));
/// ```
fn reclock<TC: Container<Item=()>>(&self, clock: &StreamCore<S, TC>) -> Self;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only looking for a progress stream, but requires a container because we have no other way to express its expectations.

fn inspect_core<F>(&self, mut func: F) -> Self where F: FnMut(Result<(&G::Timestamp, &[D]), &[G::Timestamp]>) + 'static {
self.inspect_container(move |r| func(r.map(|(t, c)| (t, &c[..]))))
}
}

impl<G: Scope, C: Container> Inspect<G, Rc<C>> for StreamCore<G, Rc<C>>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the semantics for inspecting Rc<C>, and I'm not sure we use this. It might be relevant for consuming streams of differential updates at some point, but at the moment it's Vec<Rc<Batch>> and not Rc<Container<Batch>> for some unspecified container.

It's not used, and unclear as to what it should communicate.

Signed-off-by: Moritz Hoffmann <[email protected]>
@antiguru
Copy link
Member Author

antiguru commented Feb 5, 2024

Superseded by #541

@antiguru antiguru closed this Feb 5, 2024
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