Skip to content

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 <antiguru@gmail.com>
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
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 <antiguru@gmail.com>
@antiguru antiguru closed this Jun 24, 2025
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