Methods Summary |
---|
public abstract void | close()Closes the store.
|
public abstract OutputStream | createFile(java.lang.String name)Creates a new, empty file in the directory with the given name.
Returns a stream writing this file.
|
public abstract void | deleteFile(java.lang.String name)Removes an existing file in the directory.
|
public abstract boolean | fileExists(java.lang.String name)Returns true iff a file with the given name exists.
|
public abstract long | fileLength(java.lang.String name)Returns the length of a file in the directory.
|
public abstract long | fileModified(java.lang.String name)Returns the time the named file was last modified.
|
public abstract java.lang.String[] | list()Returns an array of strings, one for each file in the directory.
|
public abstract org.apache.lucene.store.Lock | makeLock(java.lang.String name)Construct a {@link Lock}.
|
public abstract InputStream | openFile(java.lang.String name)Returns a stream reading an existing file.
|
public abstract void | renameFile(java.lang.String from, java.lang.String to)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(java.lang.String name)Set the modified time of an existing file to now.
|