org.apache.lucene.store.db
public class DbDirectory extends 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.
| Field Summary | |
|---|---|
| protected Db | blocks |
| protected Db | files |
| protected int | flags |
| protected Set | openFiles |
| protected DbTxn | txn |
| Constructor Summary | |
|---|---|
| DbDirectory(DbTxn txn, Db files, Db blocks, int flags)
Instantiate a DbDirectory. | |
| DbDirectory(Transaction txn, Database files, Database blocks, int flags) | |
| DbDirectory(Transaction txn, Database files, Database blocks) | |
| Method Summary | |
|---|---|
| void | close() |
| IndexOutput | createOutput(String name) |
| void | deleteFile(String name) |
| boolean | fileExists(String name) |
| long | fileLength(String name) |
| long | fileModified(String name) |
| void | flush()
Flush the currently open files. |
| String[] | list() |
| Lock | makeLock(String name) |
| IndexInput | openInput(String name) |
| void | renameFile(String from, String to) |
| void | setTransaction(Transaction txn)
Once a transaction handle was committed it is no longer valid. |
| void | setTransaction(DbTxn txn)
Once a transaction handle was committed it is no longer valid. |
| void | touchFile(String name) |
Parameters: txn a transaction handle that is going to be used for all db
operations done by this instance. This parameter may be
null. files a db handle to store file records. blocks a db handle to store file data blocks. flags flags used for db read operations.
See Also: DbDirectory
Parameters: txn the new transaction handle to use
Parameters: txn the new transaction handle to use