Class UpdateUrisTask
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.tasks.UpdateUrisTask
-
- All Implemented Interfaces:
SearchIndexerImpl.Task,Runnable
public class UpdateUrisTask extends Object implements SearchIndexerImpl.Task
Given a list of URIs, remove the ones that don't belong in the index and update the ones that do belong. A URI doesn't belong in the index if there is no individual with that URI, or if the individual has no VClasses assigned to it, or if the individual is excluded by one of the excluders. Deletions are done synchronously, but updates are scheduled to run on the thread pool. Commit requests are issued to the SearchEngine at each progress event and again at the end of the task.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateUrisTask.ExcludeIfNoVClassesThis will be first in the list of SearchIndexExcluders.
-
Constructor Summary
Constructors Constructor Description UpdateUrisTask(SearchIndexerImpl.IndexerConfig config, Collection<String> uris)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchIndexerStatusgetStatus()voidnotifyWorkUnitCompletion(Runnable workUnit)voidrun()
-
-
-
Constructor Detail
-
UpdateUrisTask
public UpdateUrisTask(SearchIndexerImpl.IndexerConfig config, Collection<String> uris)
-
-
Method Detail
-
getStatus
public SearchIndexerStatus getStatus()
- Specified by:
getStatusin interfaceSearchIndexerImpl.Task
-
notifyWorkUnitCompletion
public void notifyWorkUnitCompletion(Runnable workUnit)
- Specified by:
notifyWorkUnitCompletionin interfaceSearchIndexerImpl.Task
-
-