Example usage for Java org.apache.lucene.store Directory fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes the directory. |
void | copyFrom(Directory from, String src, String dest, IOContext context) Copies an existing src file from directory from to a non-existent file dest in this directory. |
IndexOutput | createOutput(String name, IOContext context) Creates a new, empty file in the directory and returns an IndexOutput instance for appending data to this file. |
void | deleteFile(String name) Removes an existing file in the directory. |
long | fileLength(String name) Returns the byte length of a file in the directory. |
String[] | listAll() Returns names of all files stored in this directory. |
Lock | obtainLock(String name) Acquires and returns a Lock for a file with the given name. |
ChecksumIndexInput | openChecksumInput(String name, IOContext context) Opens a checksum-computing stream for reading an existing file. |
IndexInput | openInput(String name, IOContext context) Opens a stream for reading an existing file. |
void | sync(Collection Ensures that any writes to these files are moved to stable storage (made durable). |
String | toString() |