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 AtomicInteger |
nextTmpFileIndex |
protected Set<String> |
pendingDeletions |
protected AtomicLong |
sizeInBytes |
static String[] |
STRINGS
Constant for efficient list -> array transformation
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context) |
org.apache.lucene.store.IndexOutput |
createTempOutput(String prefix,
String suffix,
org.apache.lucene.store.IOContext ctx) |
void |
deleteFile(String name) |
long |
fileLength(String name) |
Collection<org.apache.lucene.util.Accountable> |
getChildResources() |
Set<String> |
getPendingDeletions() |
String[] |
listAll() |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
long |
ramBytesUsed() |
void |
rename(String source,
String dest) |
void |
sync(Collection<String> names) |
void |
syncMetaData() |
public static final String[] STRINGS
protected final Map<String,GridLuceneFile> fileMap
protected final AtomicLong sizeInBytes
protected final AtomicInteger nextTmpFileIndex
public final String[] listAll()
listAll in class org.apache.lucene.store.Directorypublic void rename(String source, String dest) throws IOException
rename in class org.apache.lucene.store.DirectoryIOExceptionpublic void syncMetaData()
throws IOException
syncMetaData in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexOutput createTempOutput(String prefix, String suffix, org.apache.lucene.store.IOContext ctx) throws IOException
createTempOutput 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 Set<String> getPendingDeletions() throws IOException
getPendingDeletions in class org.apache.lucene.store.DirectoryIOExceptionpublic 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 Database and Caching Platform : ver. 8.9.29 Release Date : January 8 2026