|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.index.DefaultIndexManager com.atlassian.jira.issue.index.MemoryIndexManager
A based index manager to allow indexing to be done in memory rather than on the FS.
It can be used in test cases which involves the validity of data being indexed/deindexed/reindexed
Field Summary |
Fields inherited from class com.atlassian.jira.issue.index.DefaultIndexManager |
ANALYZER, COMMENTS_SUBDIR, ISSUES_SUBDIR |
Constructor Summary | |
MemoryIndexManager()
|
Method Summary | |
org.apache.lucene.store.Directory |
getCommentDirectory()
Gets directory where comment indexes are stored |
java.lang.String |
getCommentPath()
The specific path of the comments index |
protected java.lang.String |
getFilePath()
Return the path beneath which the different index directories are stored |
protected org.apache.lucene.index.IndexReader |
getIndexReader(java.lang.String path)
Used to retrieve an index reader where given a path |
protected org.apache.lucene.index.IndexWriter |
getIndexWriter(java.lang.String path,
boolean create)
Get an indexWriter given a path |
org.apache.lucene.store.Directory |
getIssueDirectory()
Gets the directory where issue indexes are stored |
java.lang.String |
getIssuePath()
The specific path of the issue index |
protected void |
removeDirectory()
|
Methods inherited from class com.atlassian.jira.issue.index.DefaultIndexManager |
activate, deactivate, deIndex, isBusy, reIndex, reIndexAll, reIndexAll, reIndexIssues, reIndexIssues |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryIndexManager()
Method Detail |
public java.lang.String getIssuePath()
DefaultIndexManager
getIssuePath
in interface IssueIndexManager
getIssuePath
in class DefaultIndexManager
public java.lang.String getCommentPath()
DefaultIndexManager
getCommentPath
in interface IssueIndexManager
getCommentPath
in class DefaultIndexManager
protected java.lang.String getFilePath()
DefaultIndexManager
getFilePath
in class DefaultIndexManager
public org.apache.lucene.store.Directory getIssueDirectory()
In this case, it will be the existing instance of the RAMDirectory
getIssueDirectory
in interface IssueIndexManager
getIssueDirectory
in class DefaultIndexManager
public org.apache.lucene.store.Directory getCommentDirectory()
getCommentDirectory
in interface IssueIndexManager
getCommentDirectory
in class DefaultIndexManager
protected org.apache.lucene.index.IndexReader getIndexReader(java.lang.String path) throws IndexException
getIndexReader
in class DefaultIndexManager
path
-
IndexException
protected org.apache.lucene.index.IndexWriter getIndexWriter(java.lang.String path, boolean create) throws IndexException
Only uses the path as a flag here to decide which RAMDirectory to use
getIndexWriter
in class DefaultIndexManager
path
- create
-
IndexException
protected void removeDirectory()
removeDirectory
in class DefaultIndexManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |