public class IndexRootDirectory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INDEX_METADATA_FILE_NAME |
| Constructor and Description |
|---|
IndexRootDirectory(File indexRootDir) |
IndexRootDirectory(File indexRootDir,
boolean gcOnStart) |
| Modifier and Type | Method and Description |
|---|---|
long |
gcEmptyDirs(File subDir)
Performs garbage collection of older version of index directories based on
index directory derived from the passed sub directory.
|
List<LocalIndexDir> |
getAllLocalIndexes()
Returns the most recent directory for each index.
|
File |
getIndexDir(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition,
String indexPath,
String dirName) |
List<LocalIndexDir> |
getLocalIndexes(String jcrPath) |
long |
getSize() |
public static final String INDEX_METADATA_FILE_NAME
public IndexRootDirectory(File indexRootDir) throws IOException
IOExceptionpublic IndexRootDirectory(File indexRootDir, boolean gcOnStart) throws IOException
IOExceptionpublic long getSize()
public File getIndexDir(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition, String indexPath, String dirName) throws IOException
IOExceptionpublic List<LocalIndexDir> getAllLocalIndexes() throws IOException
IOExceptionpublic List<LocalIndexDir> getLocalIndexes(String jcrPath) throws IOException
IOExceptionpublic long gcEmptyDirs(File subDir) throws IOException
subDir - one of the sub directories like 'default' etc. Such that
correct local index directory (container dir) can be checked for deletionIOExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.