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

OAK-11094: Allow creating Segment with a provided SegmentData #1700

Merged
merged 4 commits into from
Sep 13, 2024

Conversation

Nicolapps
Copy link
Contributor

All currently existing constructors of Segment instantiate a SegmentData instance from the provided data buffer (either byte[] or org.apache.jackrabbit.oak.commons.Buffer)

In some cases where we would like to use a custom implementation of SegmentData, it could be helpful to have a constructor that takes a SegmentData instance instead.

This PR also makes SegmentReferences and RecordNumber public so that the constructor I’m adding can also be public.

Closes OAK-11094

@Nicolapps Nicolapps changed the title Allow creating Segment with a provided SegmentData OAK-11094: Allow creating Segment with a provided SegmentData Sep 10, 2024
Copy link
Contributor

@mreutegg mreutegg left a comment

Choose a reason for hiding this comment

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

Looks good to me.

CI failures seem unrelated to this change.

@mreutegg mreutegg merged commit 71615c0 into apache:trunk Sep 13, 2024
1 of 2 checks passed
@Nicolapps Nicolapps deleted the OAK-11094 branch September 13, 2024 13:25
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.

2 participants