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
Constructors Constructor Description AddDocumentIndexTask(Searchable searchable, AtlassianDocumentBuilder<Searchable> documentBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<JournalEntry>convertToJournalEntry(JournalIdentifier journalId)Convert to journal entry.booleanequals(Object o)StringgetDescription()A human readable description of this index task.HandlegetHandle()SearchIndexgetSearchIndex()inthashCode()voidperform(SearchIndexWriter writer)Executes this task against a document writer.
-
-
-
Constructor Detail
-
AddDocumentIndexTask
public AddDocumentIndexTask(Searchable searchable, AtlassianDocumentBuilder<Searchable> documentBuilder)
-
-
Method Detail
-
perform
public void perform(SearchIndexWriter writer) throws IOException
Description copied from interface:ConfluenceIndexTaskExecutes this task against a document writer.- Specified by:
performin interfaceConfluenceIndexTask- Throws:
IOException
-
convertToJournalEntry
public Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
Description copied from interface:ConvertibleToJournalEntryConvert to journal entry.- Specified by:
convertToJournalEntryin interfaceConvertibleToJournalEntry- Parameters:
journalId- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
getDescription
public String getDescription()
A human readable description of this index task.- Specified by:
getDescriptionin interfaceIndexTask- Returns:
- an readable message.
-
getHandle
public Handle getHandle()
- Specified by:
getHandlein interfaceHandleAware- Returns:
- the handle
-
getSearchIndex
public SearchIndex getSearchIndex()
- Specified by:
getSearchIndexin interfaceConfluenceIndexTask- Returns:
- the
SearchIndexthat the task should write to
-
-