org.apache.lucene.store.je
public class JEDirectory extends Directory
Directory
. It uses two
com.sleepycat.je.Database Db
database handles, one for storing file
records and another for storing file data blocks.
Field Summary | |
---|---|
protected Database | blocks |
protected Database | files |
protected int | flags |
protected Set | openFiles |
protected Transaction | txn |
Constructor Summary | |
---|---|
JEDirectory(Transaction txn, Database files, Database blocks, int flags)
Instantiate a DbDirectory. | |
JEDirectory(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 | 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: JEDirectory
Parameters: txn the new transaction handle to use