@LuceneIndependent @Internal public class AddDocumentIndexTask extends Object implements ConfluenceIndexTask, HandleAware
Constructor and Description |
---|
AddDocumentIndexTask(com.atlassian.bonnie.Searchable searchable,
AtlassianDocumentBuilder<com.atlassian.bonnie.Searchable> documentBuilder) |
Modifier and Type | Method and Description |
---|---|
Optional<JournalEntry> |
convertToJournalEntry(JournalIdentifier journalId)
Convert to journal entry.
|
boolean |
equals(Object o) |
String |
getDescription()
A human readable description of this index task.
|
com.atlassian.bonnie.Handle |
getHandle() |
SearchIndex |
getSearchIndex() |
int |
hashCode() |
void |
perform(SearchIndexWriter writer)
Executes this task against a document writer.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSearchIndexAccessor, perform
public AddDocumentIndexTask(com.atlassian.bonnie.Searchable searchable, AtlassianDocumentBuilder<com.atlassian.bonnie.Searchable> documentBuilder)
public void perform(SearchIndexWriter writer) throws IOException
ConfluenceIndexTask
perform
in interface ConfluenceIndexTask
IOException
public Optional<JournalEntry> convertToJournalEntry(JournalIdentifier journalId)
ConvertibleToJournalEntry
convertToJournalEntry
in interface ConvertibleToJournalEntry
journalId
- journal identifierpublic String getDescription()
getDescription
in interface IndexTask
public com.atlassian.bonnie.Handle getHandle()
getHandle
in interface HandleAware
public SearchIndex getSearchIndex()
getSearchIndex
in interface ConfluenceIndexTask
SearchIndex
that the task should write toCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences