public class

BulkWriteIndexTask

extends Object
implements ConfluenceIndexTask
java.lang.Object
   ↳ com.atlassian.confluence.search.lucene.tasks.BulkWriteIndexTask

Class Overview

Performs a bulk write of the specified write tasks. This is to make sure we don't open and close an index writer for every single write.

Summary

Public Constructors
BulkWriteIndexTask(List<ConfluenceIndexTask> writeIndexTasks)
Public Methods
String getDescription()
A description of the task that can be presented to the user via the UI.
List<ConfluenceIndexTask> getWriteIndexTasks()
void perform(IndexWriter writer)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bonnie.ILuceneConnection.WriterAction
From interface com.atlassian.confluence.search.IndexTask

Public Constructors

public BulkWriteIndexTask (List<ConfluenceIndexTask> writeIndexTasks)

Parameters
writeIndexTasks writer index tasks. Required.
Throws
IllegalArgumentException when writeIndexTasks is null

Public Methods

public String getDescription ()

A description of the task that can be presented to the user via the UI.

Returns
  • an readable message.

public List<ConfluenceIndexTask> getWriteIndexTasks ()

public void perform (IndexWriter writer)

Throws
IOException