Class AddDocumentIndexTask
java.lang.Object
com.atlassian.confluence.internal.search.tasks.AddDocumentIndexTask
- All Implemented Interfaces:
ConfluenceIndexTask
,ConvertibleToJournalEntry
,HandleAware
,IndexTask
@LuceneIndependent
@Internal
public class AddDocumentIndexTask
extends Object
implements ConfluenceIndexTask, HandleAware
Adds a searchable to the content index.
-
Constructor Summary
ConstructorDescriptionAddDocumentIndexTask
(Searchable searchable, AtlassianDocumentBuilder<Searchable> documentBuilder) -
Method Summary
Modifier and TypeMethodDescriptionconvertToJournalEntry
(JournalIdentifier journalId) Convert to journal entry.boolean
A human readable description of this index task.int
hashCode()
void
perform
(SearchIndexWriter writer) Executes this task against a document writer.
-
Constructor Details
-
AddDocumentIndexTask
public AddDocumentIndexTask(Searchable searchable, AtlassianDocumentBuilder<Searchable> documentBuilder)
-
-
Method Details
-
perform
Description copied from interface:ConfluenceIndexTask
Executes this task against a document writer.- Specified by:
perform
in interfaceConfluenceIndexTask
- Throws:
IOException
-
convertToJournalEntry
Description copied from interface:ConvertibleToJournalEntry
Convert to journal entry.- Specified by:
convertToJournalEntry
in interfaceConvertibleToJournalEntry
- Parameters:
journalId
- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
getDescription
A human readable description of this index task.- Specified by:
getDescription
in interfaceIndexTask
- Returns:
- an readable message.
-
equals
-
hashCode
public int hashCode() -
getHandle
- Specified by:
getHandle
in interfaceHandleAware
- Returns:
- the handle
-
getSearchIndex
- Specified by:
getSearchIndex
in interfaceConfluenceIndexTask
- Returns:
- the
SearchIndex
that the task should write to
-