org.apache.lucene.index
Class IndexGate
java.lang.Object
org.apache.lucene.index.IndexGate
public class IndexGate
- extends java.lang.Object
This class allows us to peek at various Lucene internals, not available
through public APIs (for good reasons, but inquiring minds want to know ...).
- Author:
- ab
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexGate
public IndexGate()
getFileFunction
public static java.lang.String getFileFunction(java.lang.String file)
getIndexFormat
public static int getIndexFormat(org.apache.lucene.store.Directory dir)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCurrentIndexFormat
public static int getCurrentIndexFormat()
getFormatDetails
public static IndexGate.FormatDetails getFormatDetails(int format)
preferCompoundFormat
public static boolean preferCompoundFormat(org.apache.lucene.store.Directory dir)
throws java.lang.Exception
- Throws:
java.lang.Exception
deletePendingFiles
public static void deletePendingFiles(org.apache.lucene.store.Directory dir,
org.apache.lucene.index.IndexDeletionPolicy policy)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDeletableFiles
public static java.util.List<java.lang.String> getDeletableFiles(org.apache.lucene.store.Directory dir)
throws java.lang.Exception
- Throws:
java.lang.Exception
getIndexFiles
public static java.util.List<java.lang.String> getIndexFiles(org.apache.lucene.store.Directory dir)
throws java.lang.Exception
- Throws:
java.lang.Exception
hasChanges
public static boolean hasChanges(org.apache.lucene.index.IndexReader ir)