public class GridLuceneDirectory
extends org.apache.lucene.store.BaseDirectory
implements org.apache.lucene.util.Accountable
Directory implementation.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,GridLuceneFile> |
fileMap |
protected AtomicLong |
sizeInBytes |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context) |
void |
deleteFile(String name) |
long |
fileLength(String name) |
Collection<org.apache.lucene.util.Accountable> |
getChildResources() |
String[] |
listAll() |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
long |
ramBytesUsed() |
void |
renameFile(String source,
String dest) |
void |
sync(Collection<String> names) |
protected final Map<String,GridLuceneFile> fileMap
protected final AtomicLong sizeInBytes
public final String[] listAll()
listAll in class org.apache.lucene.store.Directorypublic void renameFile(String source, String dest) throws IOException
renameFile in class org.apache.lucene.store.DirectoryIOExceptionpublic final long fileLength(String name) throws IOException
fileLength in class org.apache.lucene.store.DirectoryIOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput in class org.apache.lucene.store.DirectoryIOExceptionpublic void sync(Collection<String> names) throws IOException
sync in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput in class org.apache.lucene.store.DirectoryIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.Directorypublic long ramBytesUsed()
ramBytesUsed in interface org.apache.lucene.util.Accountablepublic Collection<org.apache.lucene.util.Accountable> getChildResources()
getChildResources in interface org.apache.lucene.util.Accountable
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018