[Xapian-discuss] Xapian JNI questions

Olly Betts olly at survex.com
Wed Dec 13 03:44:06 GMT 2006


On Mon, Dec 11, 2006 at 05:46:26PM +0000, James Aylett wrote:
> On Fri, Dec 08, 2006 at 04:29:41AM +0000, Olly Betts wrote:
> 
> > Looking at the JNI code, the WritableDatabase.finalize() serves as
> > such a method.  So just calling that is enough to flush the database,
> > close it, and release the lock.
> 
> Isn't that the Java destructor, though?

Yes, but it's OK to call directly too (at least from my understanding of
Java - also note that its implementation makes it idempotent).

Cheers,
    Olly



More information about the Xapian-discuss mailing list