Package com.atlassian.jira.index
Interface Index.Manager
- All Superinterfaces:
AutoCloseable,Closeable,Closeable
- Enclosing interface:
Index
Management of an
Index-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidClean out the underlying directory the index is contained in.getIndex()Get the current IndexConnection this manager holds.booleanReturns true if the index has been created.Get the currentUnmanagedIndexSearcherfrom theIndex.
-
Method Details
-
getIndex
Get the current IndexConnection this manager holds. May throw exceptions if the index has not been created.- Returns:
- the Index this manager refers to
- Throws:
IllegalStateException- if the index directory is not created etc.
-
openSearcher
Get the currentUnmanagedIndexSearcherfrom theIndex.You must call the
closemethod in a finally block once the searcher is no longer needed.- Returns:
- the current
UnmanagedIndexSearcher
-
isIndexCreated
boolean isIndexCreated()Returns true if the index has been created. This means that the index directory itself exists AND has been initialised with the default required index files.- Returns:
- true if the index exists, false otherwise.
-
deleteIndexDirectory
void deleteIndexDirectory()Clean out the underlying directory the index is contained in.Blow away any indexes that currently live there.
-