|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.engine.impl.WorkPlan
public class WorkPlan
Represents the set of changes going to be applied to the index for the entities. A stream of Work is feed as input, a list of LuceneWork is output, and in the process we try to reduce the number of output operations to the minimum needed to reach the same final state.
Constructor Summary | |
---|---|
WorkPlan(SearchFactoryImplementor searchFactoryImplementor)
|
Method Summary | ||
---|---|---|
|
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. |
|
|
recurseContainedIn(T value,
DepthValidator depth)
Used for recursive processing of containedIn |
|
int |
size()
Returns an approximation of the amount of work in the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkPlan(SearchFactoryImplementor searchFactoryImplementor)
Method Detail |
---|
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_BATCHSIZE
public void processContainedInAndPrepareExecution()
public <T> void recurseContainedIn(T value, DepthValidator depth)
value
- the entity to be processedpublic List<LuceneWork> getPlannedLuceneWork()
LuceneWork
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |