- close
Closes the directory.
- listAll
Returns names of all files stored in this directory. The output must be in
sorted (UTF-16, java's St
- openInput
Opens a stream for reading an existing file. This method must throw either
NoSuchFileException or Fi
- createOutput
Creates a new, empty file in the directory and returns an IndexOutputinstance
for appending data to
- deleteFile
Removes an existing file in the directory. This method must throw either
NoSuchFileException or File
- fileLength
Returns the byte length of a file in the directory. This method must throw
either NoSuchFileExceptio
- fileExists
Returns true iff a file with the given name exists.
- toString
- sync
Ensures that any writes to these files are moved to stable storage (made
durable). Lucene uses this
- copy
Copy contents of a directory src to a directory dest. If a file in src already
exists in dest then t
- obtainLock
Acquires and returns a Lock for a file with the given name.
- copyFrom
Copies an existing src file from directory fromto a non-existent file dest in
this directory.