Re: btree on disk

Vadim Gritsenko <[email protected]>
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Cam Bazz wrote:
> Hello Developers,
> 
> I have been looking for a solid implementation of a Java BTree on disk 
> for the longest time. Could it be possible to use xindices btree on disk 
> seperately.
> If so, where would be a good place to start. I have looked at the source 
> code, instantiated a new BTree and added values to it, but I got a null 
> pointer exception saying that the file was not opened.

I don't think you can use BTree class directly. Take a look at BTreeFiler - that 
should be better fit. Once you instantiate it, you need to pass in configuration 
and open it. Once you are done working with it, it needs to be closed.

See also org.apache.xindice.core.Collection, there you can see how to work with 
Filers.

PS Have you seen JISP?

Vadim

[1] http://www.coyotegulch.com/products/jisp/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.