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, touchFile
public RefCntRamDirectory()
public RefCntRamDirectory(org.apache.lucene.store.Directory dir) throws java.io.IOException
java.io.IOException
public void incRef()
public void decRef()
public final void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.store.RAMDirectory
public boolean isOpen()