|Putting all this together, I have a cover for the parts of the Indexing Kit that we needed (btrees, cursors, and storage) that will allow us to continue to develop the DataPhile front end while we look for a replacement back end. It's not particularly robust or efficient, but it was built very quickly using Foundation objects. And, when we decide on another storage package, we can rewrite the guts of the cover objects without rewriting the code that uses the cover objects.|
Notes: A simple way to store and index some type of record objects: Create a btree that maps an id number to an NSData that holds the record (serialized in whatever way you wish). Create index btrees that map keys (have your records create their own keys) to the record id number. This is demonstrated in the sample code that uses the btree code.