rdf4j
rdf4j copied to clipboard
GH-4899 Introduce MapDB3 backed queue to the MapDb3CollectionFactory
GitHub issue resolved: #4899
Briefly describe the changes proposed in this PR:
Introduce a new MapDb3 backed queue implementation to the MapDb3CollectionFactory. This spills to disk onze the queue reaches size 128. The queue is backed by a map and a small class which keeps a pointer to the tail and head.
PR Author Checklist (see the contributor guidelines for more details):
- [X] my pull request is self-contained
- [X] I've added tests for the changes I made
- [X] I've applied code formatting (you can use
mvn process-resources
to format from the command line) - [X] I've squashed my commits where necessary
- [X] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change