This content has been marked as final. Show 5 replies
I'm not sure if the source code is really what you want. The BDB JE public API lets you store key-value data using a Btree internally.
When you say you want to "use BTree indices", I'm not sure what you mean. The internal Btree source code is not implemented or packaged as a reusable component, that could be used separately from the BDB JE product. But if you want it anyway, it's in this directory: src/com/sleepycat/je/tree.
Hi Mark, thanks for the reply. So more specifically how the index is structured internally?
Our btree implementation implements the usual btree data structures. Please feel free to peruse our implementation, in the source directory that Mark referred to.
The high level architecture is described in this document:
White paper: Berkeley DB Java Edition Architecture (PDF)