Package com.atlassian.jira.index
Class IssueIndexHelper
java.lang.Object
com.atlassian.jira.index.IssueIndexHelper
-
Constructor Summary
ConstructorsConstructorDescriptionIssueIndexHelper
(IssueManager issueManager, IssueIndexer issueIndexer, IssueFactory issueFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected long[]
ensureCapacity
(long[] issueIds, int requiredSize) Ensure the array has at least i elements.void
fixupConcurrentlyIndexedIssues
(Context context, AccumulatingResultBuilder resultBuilder, BackgroundIndexListener backgroundIndexListener, IssueIndexingParams issueIndexingParams) void
fixupIndexCorruptions
(AccumulatingResultBuilder resultBuilder, IndexReconciler reconciler) long[]
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)
-
Constructor Details
-
IssueIndexHelper
public IssueIndexHelper(IssueManager issueManager, IssueIndexer issueIndexer, IssueFactory issueFactory)
-
-
Method Details
-
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.
-
ensureCapacity
protected long[] ensureCapacity(long[] issueIds, int requiredSize) Ensure the array has at least i elements.- Parameters:
issueIds
- Array to test.requiredSize
- required Size.
-
fixupConcurrentlyIndexedIssues
public void fixupConcurrentlyIndexedIssues(Context context, AccumulatingResultBuilder resultBuilder, BackgroundIndexListener backgroundIndexListener, IssueIndexingParams issueIndexingParams) -
fixupIndexCorruptions
public void fixupIndexCorruptions(AccumulatingResultBuilder resultBuilder, IndexReconciler reconciler) -
safelyAddMissing
-
safelyRemoveOrphans
-