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

GH-5210 Enable implementing sails to benefit from parent sail buffering #5211

Merged

Conversation

benherber
Copy link

@benherber benherber commented Nov 26, 2024

GitHub issue resolved: #5210

Briefly describe the changes proposed in this PR:

This PR adds an overridable internal method bulkAddStatementsInternal which implementing SAILs can use to leverage the existing multithreading-safe, buffering implemented in AbstractSailConnection. This change should be fully backwards compatible as it defaults to the exiting implementation.


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

@hmottestad hmottestad changed the base branch from main to develop December 21, 2024 14:10
@@ -973,6 +971,13 @@ protected void prepareInternal() throws SailException {
protected abstract void addStatementInternal(Resource subj, IRI pred, Value obj, Resource... contexts)
throws SailException;

protected void bulkAddStatementsInternal(final Collection<? extends Statement> statements)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you annotate this with @experimental so that we can adjust the signature down the line if we need to?

Copy link
Author

Choose a reason for hiding this comment

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

Sure thing!

@benherber benherber force-pushed the GH-5210-bulk-flush-to-child-sail branch from 9034649 to 43064ff Compare December 26, 2024 18:45
@benherber benherber force-pushed the GH-5210-bulk-flush-to-child-sail branch from 43064ff to e7a04f5 Compare December 26, 2024 18:47
@benherber benherber requested a review from hmottestad December 26, 2024 18:47
@hmottestad hmottestad merged commit 1ea1589 into eclipse-rdf4j:develop Dec 27, 2024
9 checks passed
@benherber benherber deleted the GH-5210-bulk-flush-to-child-sail branch December 27, 2024 14:42
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.

Allow Child Sails to Benefit from AbstractSailConnection's Buffering Scheme
3 participants