public class

IssueIndexHelper

extends Object
java.lang.Object
   ↳ com.atlassian.jira.index.IssueIndexHelper

Summary

Public Constructors
IssueIndexHelper(IssueManager issueManager, IssueIndexer issueIndexer, IssueFactory issueFactory)
Public Methods
void fixupConcurrentlyIndexedIssues(Context context, AccumulatingResultBuilder resultBuilder, BackgroundIndexListener backgroundIndexListener, IssueIndexingParams issueIndexingParams)
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)
Protected Methods
long[] ensureCapacity(long[] issueIds, int requiredSize)
Ensure the array has at least i elements.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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

Public Methods

public void fixupConcurrentlyIndexedIssues (Context context, AccumulatingResultBuilder resultBuilder, BackgroundIndexListener backgroundIndexListener, IssueIndexingParams issueIndexingParams)

public void fixupIndexCorruptions (AccumulatingResultBuilder resultBuilder, IndexReconciler reconciler)

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.

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

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

Protected Methods

protected long[] ensureCapacity (long[] issueIds, int requiredSize)

Ensure the array has at least i elements.

Parameters
issueIds Array to test.
requiredSize required Size.