com.atlassian.jira.index
Class IssueIndexHelper

java.lang.Object
  extended by com.atlassian.jira.index.IssueIndexHelper

public class IssueIndexHelper
extends Object


Constructor Summary
IssueIndexHelper(IssueManager issueManager, IssueIndexer issueIndexer, IssueFactory issueFactory)
           
 
Method Summary
 void fixupConcurrentlyIndexedIssues(Context context, AccumulatingResultBuilder resultBuilder, BackgroundIndexListener backgroundIndexListener, boolean reIndexComments, boolean reIndexChangeHistory)
           
 void fixupIndexCorruptions(AccumulatingResultBuilder resultBuilder, IndexReconciler reconciler)
           
 long[] getAllIssueIds()
          Get all the issue ids known that are present in the index.
 void safelyAddMissing(AccumulatingResultBuilder resultBuilder, Collection<Long> unindexed)
           
 void safelyRemoveOrphans(AccumulatingResultBuilder resultBuilder, Collection<Long> orphans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueIndexHelper

public IssueIndexHelper(IssueManager issueManager,
                        IssueIndexer issueIndexer,
                        IssueFactory issueFactory)
Method Detail

getAllIssueIds

public long[] getAllIssueIds()
Get all the issue ids known that are present in the index. The issue ids are returned in a Sorted array.

Returns:
array of issue ids.

fixupConcurrentlyIndexedIssues

public void fixupConcurrentlyIndexedIssues(Context context,
                                           AccumulatingResultBuilder resultBuilder,
                                           BackgroundIndexListener backgroundIndexListener,
                                           boolean reIndexComments,
                                           boolean reIndexChangeHistory)

fixupIndexCorruptions

public void fixupIndexCorruptions(AccumulatingResultBuilder resultBuilder,
                                  IndexReconciler reconciler)

safelyAddMissing

public void safelyAddMissing(AccumulatingResultBuilder resultBuilder,
                             Collection<Long> unindexed)

safelyRemoveOrphans

public void safelyRemoveOrphans(AccumulatingResultBuilder resultBuilder,
                                Collection<Long> orphans)


Copyright © 2002-2014 Atlassian. All Rights Reserved.