Example usage for Java org.apache.lucene.store RAMDirectory fields, constructors, methods, implement or subclass
The text is from its open source code.
AtomicLong | sizeInBytes |
RAMDirectory() Constructs an empty Directory . | |
RAMDirectory(LockFactory lockFactory) Constructs an empty Directory with the given LockFactory . | |
RAMDirectory(FSDirectory dir, IOContext context) Creates a new RAMDirectory instance from a different Directory implementation. |
void | close() Closes the store to future operations, releasing associated memory. |
IndexOutput | createOutput(String name, IOContext context) |
long | fileLength(String name) Returns the length in bytes of a file in the directory. |
String[] | listAll() |
Lock | obtainLock(String name) |
IndexInput | openInput(String name, IOContext context) Returns a stream reading an existing file. |
long | ramBytesUsed() Return total size in bytes of all files in this directory. |