|
||||||||||
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.BulkOnlyIndexManager
public class BulkOnlyIndexManager
This index manager ignores calls to reIndex(org.ofbiz.core.entity.GenericValue)
,
deIndex(org.ofbiz.core.entity.GenericValue)
and
reIndexIssues(Collection)
.
It should only be used where the indexer will manually call reIndexAll()
!
Field Summary |
---|
Fields inherited from class com.atlassian.jira.issue.index.DefaultIndexManager |
---|
ANALYZER_FOR_INDEXING, ANALYZER_FOR_SEARCHING, COMMENTS_SUBDIR, ISSUES_SUBDIR, PLUGINS_SUBDIR |
Fields inherited from interface com.atlassian.jira.issue.index.IssueIndexManager |
---|
LUCENE_VERSION |
Constructor Summary | |
---|---|
BulkOnlyIndexManager(IndexingConfiguration properties,
IssueIndexer issueIndexer,
IndexPathManager indexPathManager,
ReindexMessageManager reindexMessageManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ListenerManager listenerManager)
private only for testing purposes (use the factory method to get an instance) |
Method Summary | |
---|---|
void |
deIndex(org.ofbiz.core.entity.GenericValue entity)
Remove an issue from the search index. |
void |
deIndex(Issue issue)
Remove an issue from the search index. |
long |
optimize()
Optimize the underlying indexes. |
void |
reIndex(org.ofbiz.core.entity.GenericValue entity)
Reindex an issue (eg. |
void |
reIndex(Issue entity)
Reindex an issue (eg. |
long |
reIndexAll()
Reindex all issues. |
long |
reIndexAll(com.atlassian.johnson.event.Event event)
|
long |
reIndexIssueObjects(Collection<? extends Issue> issueObjects)
Reindex a set of issues. |
long |
reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues)
Reindex a set of issues (GenericValues). |
long |
reIndexIssues(IssuesIterable issuesIterable,
com.atlassian.johnson.event.Event event)
|
String |
toString()
|
Methods inherited from class com.atlassian.jira.issue.index.DefaultIndexManager |
---|
activate, deactivate, flushThreadLocalSearchers, getAllIndexPaths, getAnalyzerForIndexing, getAnalyzerForSearching, getChangeHistorySearcher, getCommentSearcher, getExistingPluginsPaths, getIssueSearcher, getPluginsRootPath, isEmpty, isIndexingEnabled, reIndexAll, reIndexIssues, shutdown, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BulkOnlyIndexManager(IndexingConfiguration properties, IssueIndexer issueIndexer, IndexPathManager indexPathManager, ReindexMessageManager reindexMessageManager, com.atlassian.event.api.EventPublisher eventPublisher, ListenerManager listenerManager)
Method Detail |
---|
public void deIndex(Issue issue) throws IndexException
IssueIndexManager
deIndex
in interface IssueIndexManager
deIndex
in class DefaultIndexManager
IndexException
public void deIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
IssueIndexManager
deIndex
in interface IssueIndexManager
deIndex
in class DefaultIndexManager
IndexException
public void reIndex(org.ofbiz.core.entity.GenericValue entity) throws IndexException
IssueIndexManager
reIndex
in interface IssueIndexManager
reIndex
in class DefaultIndexManager
IndexException
public void reIndex(Issue entity) throws IndexException
IssueIndexManager
reIndex
in interface IssueIndexManager
reIndex
in class DefaultIndexManager
IndexException
public long reIndexAll() throws IndexException
IssueIndexManager
reIndexAll
in interface IssueIndexManager
reIndexAll
in class DefaultIndexManager
IndexException
public long reIndexAll(com.atlassian.johnson.event.Event event) throws IndexException
IndexException
public long reIndexIssueObjects(Collection<? extends Issue> issueObjects) throws IndexException
IssueIndexManager
reIndexIssueObjects
in interface IssueIndexManager
reIndexIssueObjects
in class DefaultIndexManager
issueObjects
- Set of Issue
s to reindex.
IndexException
public long reIndexIssues(IssuesIterable issuesIterable, com.atlassian.johnson.event.Event event) throws IndexException
IndexException
public long reIndexIssues(Collection<org.ofbiz.core.entity.GenericValue> issues) throws IndexException
IssueIndexManager
IssueIndexManager.reIndexIssueObjects(Collection)
instead when possible.
reIndexIssues
in interface IssueIndexManager
reIndexIssues
in class DefaultIndexManager
issues
- The Issue GenericValue
s to reindex.
IndexException
public long optimize()
IndexLifecycleManager
optimize
in interface IndexLifecycleManager
optimize
in class DefaultIndexManager
public String toString()
toString
in class DefaultIndexManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |