| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.lucene.store.Directorypublic abstract class Directoryextends ObjectMethod 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 IOExceptionCloses 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 IOExceptionRemoves an existing file in the directory.
public abstract boolean fileExists(String name)
throws IOExceptionReturns true iff a file with the given name exists.
public abstract long fileLength(String name)
throws IOExceptionReturns the length of a file in the directory.
public abstract long fileModified(String name)
throws IOExceptionReturns the time the named file was last modified.
public abstract String[] list()
throws IOExceptionReturns 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 IOExceptionRenames 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 IOExceptionSet the modified time of an existing file to now.