Hello Alex, hello list,
I was wondering whether any of you thought about porting JDBM to the
Java Collections framework. Using the Collections framework would
facilitate the use of JDBM a great deal, since then it is much easier
to mix and match JDBM and Java collection containers.
I have looked a bit into that. The feature I'd need most is the
iterator functionality, which could be implemented based on FastIterator
for HTree or TupleBrowser for BTree. The only issue I can see is that
a lot of JDBM methods throw an IOException, while the Collections
interfaces don't allow these exceptions. Implementing the Collection
interface would also require to rename the remove operation (return
type Object vs. boolean).
What other problems do you see for implementing support for the
Collections framework? I hope that the changes are trivial, and if
so I am going to implement them soon. Would anybody be interested in
sharing the effort?