|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.index.ha.IndexUtils
public class IndexUtils
Helper methods to work with LuceneIndexes.
Nested Class Summary | |
---|---|
static class |
IndexUtils.IndexPath
Represents the paths in jira home where indexes are stored |
Constructor Summary | |
---|---|
IndexUtils(IssueIndexManager issueIndexManager,
JiraHome jiraHome,
LuceneDirectoryUtils luceneDirectoryUtils)
|
Method Summary | |
---|---|
Map<IndexUtils.IndexPath,com.atlassian.jira.index.ha.IndexUtils.IndexPathMapping> |
buildIndexPathMappings(String sourcePath,
String destinationPath)
Builds a mapping from the source index filepath to the destination filepath - keyed by the type of index |
void |
clearIndex(String path)
This deletes all documents in all indexes (if they exist) |
void |
copyIndexes(String sourcePath,
String destinationPath)
Copies all indexes from a specified directory to another specified directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexUtils(IssueIndexManager issueIndexManager, JiraHome jiraHome, LuceneDirectoryUtils luceneDirectoryUtils)
Method Detail |
---|
public void copyIndexes(@Nonnull String sourcePath, @Nonnull String destinationPath)
sourcePath
- source of index filesdestinationPath
- destination of index filespublic Map<IndexUtils.IndexPath,com.atlassian.jira.index.ha.IndexUtils.IndexPathMapping> buildIndexPathMappings(@Nonnull String sourcePath, @Nonnull String destinationPath)
sourcePath
- the root of the source indexdestinationPath
- the root of the destination index
public void clearIndex(@Nonnull String path)
path
- the root of the index to clear
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |