| java.lang.Object org.apache.lucene.store.Directory org.apache.lucene.store.je.JEDirectory
JEDirectory | public class JEDirectory extends Directory (Code) | | Port of Andi Vajda's DbDirectory to to Java Edition of Berkeley Database
A JEDirectory is a Berkeley DB JE based implementation of
org.apache.lucene.store.Directory Directory . It uses two
com.sleepycat.je.Database Db database handles, one for storing file
records and another for storing file data blocks.
author: Aaron Donovan |
Constructor Summary | |
public | JEDirectory(Transaction txn, Database files, Database blocks, int flags) Instantiate a DbDirectory. | public | JEDirectory(Transaction txn, Database files, Database blocks) |
filesblocks | protected Database filesblocks(Code) | | |
flags | protected int flags(Code) | | |
txn | protected Transaction txn(Code) | | |
JEDirectory | public JEDirectory(Transaction txn, Database files, Database 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. |
JEDirectory | public JEDirectory(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: JEDirectory.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 JEDirectory instance after a commit, the
transaction handle has to be replaced.
Parameters: txn - the new transaction handle to use |
|
|