public class

Operations

extends Object
java.lang.Object
   ↳ com.atlassian.jira.index.Operations

Summary

Public Methods
static Index.Operation newCompletionDelegate(Index.Operation operation, Runnable completionJob)
Create an operation that delegates to another Operation and then runs the supplied completionJob as soon as the operation is performed (in whatever thread the operation is performed in).
static Index.Operation newConditionalUpdate(Term term, Document document, Index.UpdateMode mode, String optimisticLockField)
static Index.Operation newCreate(Collection<Document> documents, Index.UpdateMode mode)
static Index.Operation newCreate(Document document, Index.UpdateMode mode)
static Index.Operation newDelete(Term term, Index.UpdateMode mode)
static Index.Operation newOptimize()
static Index.Operation newUpdate(Term term, Collection<Document> documents, Index.UpdateMode mode)
static Index.Operation newUpdate(Term term, Document document, Index.UpdateMode mode)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Index.Operation newCompletionDelegate (Index.Operation operation, Runnable completionJob)

Create an operation that delegates to another Operation and then runs the supplied completionJob as soon as the operation is performed (in whatever thread the operation is performed in).

Parameters
operation the operation to delegate the actual work to.
completionJob the Runnable instance that is run after the supplied operation completes.
Returns
  • the new composite operation.

public static Index.Operation newConditionalUpdate (Term term, Document document, Index.UpdateMode mode, String optimisticLockField)

public static Index.Operation newCreate (Collection<Document> documents, Index.UpdateMode mode)

public static Index.Operation newCreate (Document document, Index.UpdateMode mode)

public static Index.Operation newDelete (Term term, Index.UpdateMode mode)

public static Index.Operation newOptimize ()

public static Index.Operation newUpdate (Term term, Collection<Document> documents, Index.UpdateMode mode)

public static Index.Operation newUpdate (Term term, Document document, Index.UpdateMode mode)