org.hibernate.search.backend
Class WorkQueue
java.lang.Object
org.hibernate.search.backend.WorkQueue
public class WorkQueue
- extends Object
- Author:
- Emmanuel Bernard, Sanne Grinovero
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkQueue
public WorkQueue(SearchFactoryImplementor searchFactoryImplementor)
WorkQueue
public WorkQueue(SearchFactoryImplementor searchFactoryImplementor,
WorkPlan plan)
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