com.atlassian.confluence.search.lucene.tasks
Class DeleteChangeDocumentsIndexTask
java.lang.Object
com.atlassian.confluence.search.lucene.tasks.DeleteChangeDocumentsIndexTask
- All Implemented Interfaces:
- ILuceneConnection.WriterAction, HandleAware, IndexTask, ConfluenceIndexTask
public class DeleteChangeDocumentsIndexTask
- extends Object
- implements ConfluenceIndexTask, HandleAware
Removes all change documents for a particular searchable.
DeleteChangeDocumentsIndexTask
public DeleteChangeDocumentsIndexTask(Searchable searchable)
- Creates a remove change documents index task for the latest version of searchable
- Parameters:
searchable
-
- Throws:
UnsupportedOperationException
- if searchable is not supported.
DeleteChangeDocumentsIndexTask
public DeleteChangeDocumentsIndexTask(String handle)
getHandle
public Handle getHandle()
- Specified by:
getHandle
in interface HandleAware
- Returns:
- the handle
getDescription
public String getDescription()
- Description copied from interface:
IndexTask
- A description of the task that can be presented to the user via the UI.
- Specified by:
getDescription
in interface IndexTask
- Returns:
- an readable message.
perform
public void perform(IndexWriter writer)
throws IOException
- Specified by:
perform
in interface ILuceneConnection.WriterAction
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object