FileDocCategorySizeDatePackage
DbHandleExtractor.javaAPI DocApache Lucene 1.91427Mon Feb 20 09:18:00 GMT 2006com.sleepycat.db

DbHandleExtractor

public class DbHandleExtractor extends Object
This class is a hack to workaround the need to rewrite the entire org.apache.lucene.store.db package after Sleepycat radically changed its Java API from version 4.2.52 to version 4.3.21. The code below extracts the package-accessible internal handle instances that were the entrypoint objects in the pre-4.3 Java API and that wrap the actual Berkeley DB C objects via SWIG.
author
Andi Vajda

Fields Summary
Constructors Summary
private DbHandleExtractor()

    
Methods Summary
public static com.sleepycat.db.internal.DbgetDb(Database database)

        return database.db;
    
public static com.sleepycat.db.internal.DbTxngetDbTxn(Transaction transaction)

        return transaction.txn;