com.atlassian.jira.issue.index
Class BulkOnlyIndexManager

java.lang.Object
  extended bycom.atlassian.jira.issue.index.DefaultIndexManager
      extended bycom.atlassian.jira.issue.index.BulkOnlyIndexManager
All Implemented Interfaces:
IssueIndexManager

public class BulkOnlyIndexManager
extends DefaultIndexManager

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 DefaultIndexManager.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
 
Constructor Summary
BulkOnlyIndexManager()
           
 
Method Summary
 void deIndex(org.ofbiz.core.entity.GenericValue entity)
          Remove an issue from the search index.
 void reIndex(org.ofbiz.core.entity.GenericValue entity)
          Reindex an issue (eg.
 void reIndex(Issue entity)
          Reindex an issue (eg.
 long reIndexIssues(Collection issues)
          Reindex a set of issues (GenericValues).
 
Methods inherited from class com.atlassian.jira.issue.index.DefaultIndexManager
activate, deactivate, deactivate, getAllIndexPaths, getCommentDirectory, getCommentPath, getExistingPluginsPaths, getFilePath, getIndexReader, getIndexWriter, getIssueDirectory, getIssuePath, getPluginsRootPath, isBusy, reIndexAll, reIndexAll, reIndexIssueObjects, reIndexIssues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkOnlyIndexManager

public BulkOnlyIndexManager()
Method Detail

deIndex

public void deIndex(org.ofbiz.core.entity.GenericValue entity)
             throws IndexException
Description copied from interface: IssueIndexManager
Remove an issue from the search index.

Specified by:
deIndex in interface IssueIndexManager
Overrides:
deIndex in class DefaultIndexManager
Throws:
IndexException

reIndex

public void reIndex(org.ofbiz.core.entity.GenericValue entity)
             throws IndexException
Description copied from interface: IssueIndexManager
Reindex an issue (eg. after field updates).

Specified by:
reIndex in interface IssueIndexManager
Overrides:
reIndex in class DefaultIndexManager
Throws:
IndexException

reIndex

public void reIndex(Issue entity)
             throws IndexException
Description copied from interface: IssueIndexManager
Reindex an issue (eg. after field updates).

Specified by:
reIndex in interface IssueIndexManager
Overrides:
reIndex in class DefaultIndexManager
Throws:
IndexException

reIndexIssues

public long reIndexIssues(Collection issues)
                   throws IndexException
Description copied from interface: IssueIndexManager
Reindex a set of issues (GenericValues). Use IssueIndexManager.reIndexIssueObjects(Collection) instead when possible.

Specified by:
reIndexIssues in interface IssueIndexManager
Overrides:
reIndexIssues in class DefaultIndexManager
Throws:
IndexException


Copyright © 2002-2006 Atlassian. All Rights Reserved.