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(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
IOException
public IndexRootDirectory(File indexRootDir, boolean gcOnStart) throws IOException
IOException
public long getSize()
public File getIndexDir(IndexDefinition definition, String indexPath, String dirName) throws IOException
IOException
public List<LocalIndexDir> getAllLocalIndexes() throws IOException
IOException
public List<LocalIndexDir> getLocalIndexes(String jcrPath) throws IOException
IOException
public 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 deletionIOException
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.