public class IssueIndexHelper extends Object
Constructor and Description |
---|
IssueIndexHelper(IssueManager issueManager,
IssueIndexer issueIndexer,
IssueFactory issueFactory) |
Modifier and Type | Method and Description |
---|---|
protected 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[] |
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) |
public IssueIndexHelper(IssueManager issueManager, IssueIndexer issueIndexer, IssueFactory issueFactory)
public long[] getAllIssueIds()
protected long[] ensureCapacity(long[] issueIds, int requiredSize)
issueIds
- Array to test.requiredSize
- required Size.public void fixupConcurrentlyIndexedIssues(Context context, AccumulatingResultBuilder resultBuilder, BackgroundIndexListener backgroundIndexListener, IssueIndexingParams issueIndexingParams)
public void fixupIndexCorruptions(AccumulatingResultBuilder resultBuilder, IndexReconciler reconciler)
public void safelyAddMissing(AccumulatingResultBuilder resultBuilder, Collection<Long> unindexed)
public void safelyRemoveOrphans(AccumulatingResultBuilder resultBuilder, Collection<Long> orphans)
Copyright © 2002-2019 Atlassian. All Rights Reserved.