public class RefCntRamDirectory
extends org.apache.lucene.store.RAMDirectory
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicInteger |
refCount |
| Constructor and Description |
|---|
RefCntRamDirectory() |
RefCntRamDirectory(org.apache.lucene.store.Directory dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decRef() |
void |
incRef() |
boolean |
isOpen() |
createOutput, deleteFile, fileExists, fileLength, fileModified, listAll, newRAMFile, openInput, sizeInBytes, touchFilepublic RefCntRamDirectory()
public RefCntRamDirectory(org.apache.lucene.store.Directory dir)
throws java.io.IOException
java.io.IOExceptionpublic void incRef()
public void decRef()
public final void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.lucene.store.RAMDirectorypublic boolean isOpen()