public class

DefaultTemporaryIndexProvider

extends Object
implements TemporaryIndexProvider
java.lang.Object
   ↳ com.atlassian.jira.issue.index.DefaultTemporaryIndexProvider

Summary

Public Constructors
DefaultTemporaryIndexProvider(IndexWriterConfiguration writerConfiguration, ApplicationProperties applicationProperties, SearchHandlerManager searchHandlerManager, IssueFactory issueFactory, PermissionsFilterGenerator permissionsFilterGenerator, SearchSortUtil searchSortUtil, LuceneQueryBuilder luceneQueryBuilder, DefaultIssueIndexer.CommentRetriever commentRetriever, DefaultIssueIndexer.ChangeHistoryRetriever changeHistoryRetriever, DefaultIssueIndexer.WorklogRetriever worklogRetriever, IssueDocumentFactory issueDocumentFactory, CommentDocumentFactory commentDocumentFactory, ChangeHistoryDocumentFactory changeHistoryDocumentFactory, WorklogDocumentFactory worklogDocumentFactory, JqlAliasManager jqlAliasManager, IssueManager issueManager)
Public Methods
@Nullable <T> T indexIssuesAndSearch(Collection<? extends Issue> issues, IndexSearcher<T> indexSearcher)
Create a temporary index, run the callback and return the computed value
Protected Methods
IndexingMode getDirectFlushingIndexingMode()
@Nonnull AbstractJiraHome getJiraHome(File homeDir)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.index.TemporaryIndexProvider

Public Constructors

public DefaultTemporaryIndexProvider (IndexWriterConfiguration writerConfiguration, ApplicationProperties applicationProperties, SearchHandlerManager searchHandlerManager, IssueFactory issueFactory, PermissionsFilterGenerator permissionsFilterGenerator, SearchSortUtil searchSortUtil, LuceneQueryBuilder luceneQueryBuilder, DefaultIssueIndexer.CommentRetriever commentRetriever, DefaultIssueIndexer.ChangeHistoryRetriever changeHistoryRetriever, DefaultIssueIndexer.WorklogRetriever worklogRetriever, IssueDocumentFactory issueDocumentFactory, CommentDocumentFactory commentDocumentFactory, ChangeHistoryDocumentFactory changeHistoryDocumentFactory, WorklogDocumentFactory worklogDocumentFactory, JqlAliasManager jqlAliasManager, IssueManager issueManager)

Public Methods

@Nullable public T indexIssuesAndSearch (Collection<? extends Issue> issues, IndexSearcher<T> indexSearcher)

Create a temporary index, run the callback and return the computed value

Parameters
issues issues that will be indexed into the lucene index
indexSearcher callback for querying the index
Returns
  • result of the callback

Protected Methods

protected IndexingMode getDirectFlushingIndexingMode ()

@Nonnull protected AbstractJiraHome getJiraHome (File homeDir)