| Modifier and Type | Field and Description |
|---|---|
protected Database |
blocks |
protected Database |
files |
protected int |
flags |
protected java.util.Set |
openFiles |
protected Transaction |
txn |
lockFactory| Constructor and Description |
|---|
JEDirectory(Transaction txn,
Database files,
Database blocks) |
JEDirectory(Transaction txn,
Database files,
Database blocks,
int flags)
Instantiate a DbDirectory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IndexOutput |
createOutput(java.lang.String name) |
void |
deleteFile(java.lang.String name) |
boolean |
fileExists(java.lang.String name) |
long |
fileLength(java.lang.String name) |
long |
fileModified(java.lang.String name) |
void |
flush()
Flush the currently open files.
|
java.lang.String[] |
list() |
Lock |
makeLock(java.lang.String name) |
IndexInput |
openInput(java.lang.String name) |
void |
renameFile(java.lang.String from,
java.lang.String to) |
void |
setTransaction(Transaction txn)
Once a transaction handle was committed it is no longer valid.
|
void |
touchFile(java.lang.String name) |
clearLock, copy, ensureOpen, getLockFactory, getLockID, openInput, setLockFactory, syncprotected java.util.Set openFiles
protected Database files
protected Database blocks
protected Transaction txn
protected int flags
public JEDirectory(Transaction txn,
Database files,
Database blocks,
int flags)
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.public JEDirectory(Transaction txn,
Database files,
Database blocks)
public void close()
throws java.io.IOException
public void flush()
throws java.io.IOException
java.io.IOExceptionsetTransaction(Transaction)public IndexOutput createOutput(java.lang.String name) throws java.io.IOException
createOutput in class Directoryjava.io.IOExceptionpublic void deleteFile(java.lang.String name)
throws java.io.IOException
deleteFile in class Directoryjava.io.IOExceptionpublic boolean fileExists(java.lang.String name)
throws java.io.IOException
fileExists in class Directoryjava.io.IOExceptionpublic long fileLength(java.lang.String name)
throws java.io.IOException
fileLength in class Directoryjava.io.IOExceptionpublic long fileModified(java.lang.String name)
throws java.io.IOException
fileModified in class Directoryjava.io.IOExceptionpublic java.lang.String[] list()
throws java.io.IOException
public IndexInput openInput(java.lang.String name) throws java.io.IOException
public void renameFile(java.lang.String from,
java.lang.String to)
throws java.io.IOException
renameFile in class Directoryjava.io.IOExceptionpublic void touchFile(java.lang.String name)
throws java.io.IOException
public void setTransaction(Transaction txn)
txn - the new transaction handle to useCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.