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

Make headerLBS and finalLBS index-type-polymorphic #483

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

jeltsch
Copy link
Collaborator

@jeltsch jeltsch commented Dec 1, 2024

Generation of headers and footers of serialized indexes has so far been working only for compact indexes. This pull request introduces an implementation of this functionality for ordinary indexes and extends the Index type class such that header and footer generation can be accessed independently of the concrete index type.

As a side change, this pull request also corrects the naming of postVersionBytes, an entity local to the fromSBS definition for IndexOrdinary, to postTypeAndVersionBytes.

@jeltsch jeltsch self-assigned this Dec 1, 2024
@jeltsch jeltsch requested a review from wenkokke as a code owner December 1, 2024 00:04
@jeltsch jeltsch added the enhancement New feature or request label Dec 1, 2024
@jeltsch jeltsch changed the title Correct postVersionBytes to postTypeAndVersionBytes Make headerLBS and finalLBS index-type-polymorphic Dec 1, 2024
src/Database/LSMTree/Internal/Index/Compact.hs Outdated Show resolved Hide resolved
src/Database/LSMTree/Internal/Index/Compact.hs Outdated Show resolved Hide resolved
src/Database/LSMTree/Internal/Index/Ordinary.hs Outdated Show resolved Hide resolved
src/Database/LSMTree/Internal/Index.hs Outdated Show resolved Hide resolved
Copy link
Collaborator

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

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

Let's squash before merging

@jeltsch jeltsch force-pushed the jeltsch/polymorphic-index-periphery branch from b744e2d to 0d0eab5 Compare December 9, 2024 15:41
@jeltsch jeltsch enabled auto-merge December 9, 2024 15:41
@jeltsch jeltsch added this pull request to the merge queue Dec 9, 2024
Merged via the queue into main with commit 59801ee Dec 9, 2024
27 checks passed
@jeltsch jeltsch deleted the jeltsch/polymorphic-index-periphery branch December 9, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants