Skip to content

Remove ReadItem from BatchContainer #579

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

antiguru
Copy link
Member

@antiguru antiguru commented Feb 21, 2025

Remove ReadItem<'a> from BatchContainer, introduce a BatchIndex trait that behaves similarly to columnar's Index trait: It has an associated type (not lifetimed) and implementations use the lifetime of &'a Self to express their constraints.

The wrinkle it introduces is that the trace reader/cursor/batch traits need to gain functions to work with (G)ATs where the behavior was previously encoded in IntoOwned. I'd like to remove the IntoOwned trait because it makes it hard for other crates to use Differential, but that'd mean we have to add more functions to work with keys and values, too.

I started off the wrong branch, so there's a bunch of unrelated changes. Only look at the last commit (3e97287)

Signed-off-by: Moritz Hoffmann <[email protected]>
Signed-off-by: Moritz Hoffmann <[email protected]>
Signed-off-by: Moritz Hoffmann <[email protected]>
The BatchIndex trait is similiar to Columnar's Index trait. We implment it
for _refernces_ to BatchContainers, so that the reference type is not a
GAT but rather a simple associated type.

Signed-off-by: Moritz Hoffmann <[email protected]>
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