com.atlassian.jira.index
Class Operations

java.lang.Object
  extended by com.atlassian.jira.index.Operations

public class Operations
extends Object


Method Summary
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 newCreate(Collection<org.apache.lucene.document.Document> documents, Index.UpdateMode mode)
           
static Index.Operation newCreate(org.apache.lucene.document.Document document, Index.UpdateMode mode)
           
static Index.Operation newDelete(org.apache.lucene.index.Term term, Index.UpdateMode mode)
           
static Index.Operation newOptimize()
           
static Index.Operation newUpdate(org.apache.lucene.index.Term term, Collection<org.apache.lucene.document.Document> documents, Index.UpdateMode mode)
           
static Index.Operation newUpdate(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document, Index.UpdateMode mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newDelete

public static Index.Operation newDelete(@NotNull
                                        org.apache.lucene.index.Term term,
                                        @NotNull
                                        Index.UpdateMode mode)

newCreate

public static Index.Operation newCreate(@NotNull
                                        org.apache.lucene.document.Document document,
                                        @NotNull
                                        Index.UpdateMode mode)

newCreate

public static Index.Operation newCreate(@NotNull
                                        Collection<org.apache.lucene.document.Document> documents,
                                        @NotNull
                                        Index.UpdateMode mode)

newUpdate

public static Index.Operation newUpdate(@NotNull
                                        org.apache.lucene.index.Term term,
                                        @NotNull
                                        org.apache.lucene.document.Document document,
                                        @NotNull
                                        Index.UpdateMode mode)

newUpdate

public static Index.Operation newUpdate(@NotNull
                                        org.apache.lucene.index.Term term,
                                        @NotNull
                                        Collection<org.apache.lucene.document.Document> documents,
                                        @NotNull
                                        Index.UpdateMode mode)

newOptimize

public static Index.Operation newOptimize()

newCompletionDelegate

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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.