org.hibernate.search.engine.impl
public class WorkPlan extends Object
| Constructor and Description |
|---|
WorkPlan(SearchFactoryImplementor searchFactoryImplementor) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addWork(Work<T> work)
Adds a work to be performed as part of the final plan.
|
void |
clear()
Removes all scheduled work
|
List<LuceneWork> |
getPlannedLuceneWork() |
void |
processContainedInAndPrepareExecution()
Makes sure that all additional work needed because of containedIn
is added to the work plan.
|
<T> void |
recurseContainedIn(T value,
DepthValidator depth)
Used for recursive processing of containedIn
|
int |
size()
Returns an approximation of the amount of work in the queue.
|
public WorkPlan(SearchFactoryImplementor searchFactoryImplementor)
public <T> void addWork(Work<T> work)
T - the type of the work, or of the affected entitywork - The work instance to add to the work planpublic void clear()
public int size()
Environment.QUEUEINGPROCESSOR_BATCHSIZEpublic void processContainedInAndPrepareExecution()
public <T> void recurseContainedIn(T value,
DepthValidator depth)
value - the entity to be processedpublic List<LuceneWork> getPlannedLuceneWork()
LuceneWorkCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved