| java.lang.Object org.apache.lucene.store.Directory org.apache.lucene.store.db.DbDirectory
DbDirectory | public class DbDirectory extends Directory (Code) | | A DbDirectory is a Berkeley DB 4.3 based implementation of
org.apache.lucene.store.Directory Directory . It uses two
com.sleepycat.db.internal.Db Db database handles, one for storing file
records and another for storing file data blocks.
author: Andi Vajda |
Constructor Summary | |
public | DbDirectory(DbTxn txn, Db files, Db blocks, int flags) Instantiate a DbDirectory. | public | DbDirectory(Transaction txn, Database files, Database blocks, int flags) | public | DbDirectory(Transaction txn, Database files, Database blocks) |
filesblocks | protected Db filesblocks(Code) | | |
flags | protected int flags(Code) | | |
DbDirectory | public DbDirectory(DbTxn txn, Db files, Db blocks, int flags)(Code) | | Instantiate a DbDirectory. The same threading rules that apply to
Berkeley DB handles apply to instances of DbDirectory.
Parameters: txn - a transaction handle that is going to be used for all dboperations done by this instance. This parameter may benull . Parameters: files - a db handle to store file records. Parameters: blocks - a db handle to store file data blocks. Parameters: flags - flags used for db read operations. |
DbDirectory | public DbDirectory(Transaction txn, Database files, Database blocks, int flags)(Code) | | |
DbDirectory | public DbDirectory(Transaction txn, Database files, Database blocks)(Code) | | |
flush | public void flush() throws IOException(Code) | | Flush the currently open files. After they have been flushed it is
safe to commit the transaction without closing this DbDirectory
instance first.
See Also: DbDirectory.setTransaction |
setTransaction | public void setTransaction(Transaction txn)(Code) | | Once a transaction handle was committed it is no longer valid. In
order to continue using this DbDirectory instance after a commit, the
transaction handle has to be replaced.
Parameters: txn - the new transaction handle to use |
setTransaction | public void setTransaction(DbTxn txn)(Code) | | Once a transaction handle was committed it is no longer valid. In
order to continue using this DbDirectory instance after a commit, the
transaction handle has to be replaced.
Parameters: txn - the new transaction handle to use |
|
|