Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.lucene.store.Directory
public abstract class Directory
extends Object
Method Summary | |
abstract void |
|
OutputStream |
|
IndexOutput |
|
abstract void |
|
abstract boolean |
|
abstract long |
|
abstract long |
|
abstract String[] |
|
abstract Lock | |
InputStream |
|
IndexInput |
|
abstract void |
|
abstract void |
|
public abstract void close() throws IOException
Closes the store.
public OutputStream createFile(String name) throws IOException
Deprecated. use
createOutput(String)
public IndexOutput createOutput(String name) throws IOException
Creates a new, empty file in the directory with the given name. Returns a stream writing this file.
public abstract void deleteFile(String name) throws IOException
Removes an existing file in the directory.
public abstract boolean fileExists(String name) throws IOException
Returns true iff a file with the given name exists.
public abstract long fileLength(String name) throws IOException
Returns the length of a file in the directory.
public abstract long fileModified(String name) throws IOException
Returns the time the named file was last modified.
public abstract String[] list() throws IOException
Returns an array of strings, one for each file in the directory.
public abstract Lock makeLock(String name)
Construct aLock
.
- Parameters:
name
- the name of the lock file
public InputStream openFile(String name) throws IOException
Deprecated. use
openInput(String)
public IndexInput openInput(String name) throws IOException
Returns a stream reading an existing file.
public abstract void renameFile(String from, String to) throws IOException
Renames an existing file in the directory. If a file already exists with the new name, then it is replaced. This replacement should be atomic.
public abstract void touchFile(String name) throws IOException
Set the modified time of an existing file to now.