org.hibernate.search.backend
Class WorkQueue

java.lang.Object
  extended by org.hibernate.search.backend.WorkQueue

public class WorkQueue
extends Object

Author:
Emmanuel Bernard, Sanne Grinovero

Constructor Summary
WorkQueue(SearchFactoryImplementor searchFactoryImplementor)
           
WorkQueue(SearchFactoryImplementor searchFactoryImplementor, WorkPlan plan)
           
 
Method Summary
 void add(Work work)
           
 void clear()
           
 List<LuceneWork> getSealedQueue()
           
 boolean isSealedAndUnchanged()
           
 void prepareWorkPlan()
          Compiles the work collected so far in an optimal execution plan, storing the list of lucene operations to be performed in the sealedQueue.
 int size()
          Returns an estimate of the to be performed operations
 WorkQueue splitQueue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkQueue

public WorkQueue(SearchFactoryImplementor searchFactoryImplementor)

WorkQueue

public WorkQueue(SearchFactoryImplementor searchFactoryImplementor,
                 WorkPlan plan)
Method Detail

isSealedAndUnchanged

public boolean isSealedAndUnchanged()

add

public void add(Work work)

splitQueue

public WorkQueue splitQueue()

getSealedQueue

public List<LuceneWork> getSealedQueue()

clear

public void clear()

size

public int size()
Returns an estimate of the to be performed operations

Returns:
the approximate size
See Also:
WorkPlan.size()

prepareWorkPlan

public void prepareWorkPlan()
Compiles the work collected so far in an optimal execution plan, storing the list of lucene operations to be performed in the sealedQueue.



Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved