Class UpdateStatementsTask
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.tasks.UpdateStatementsTask
-
- All Implemented Interfaces:
SearchIndexerImpl.Task,Runnable
public class UpdateStatementsTask extends Object implements SearchIndexerImpl.Task
Receive a collection of statements that have been added to the model, or delete from it. Find the URIs of search documents that may have been affected by these changes, and update those documents. ------------------- It would be nice to stream this whole thing, finding the URIs affected by each statement and updating those documents before proceding. However, it is very common for several statements within a group to affect the same document, so that method would result in rebuilding the document several times. Instead, we final all of the URIs affected by all statements, store them in a Set to remove duplicates, and then process the URIs in the set.
-
-
Constructor Summary
Constructors Constructor Description UpdateStatementsTask(SearchIndexerImpl.IndexerConfig config, List<org.apache.jena.rdf.model.Statement> changes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchIndexerStatusgetStatus()voidnotifyWorkUnitCompletion(Runnable workUnit)voidrun()
-
-
-
Constructor Detail
-
UpdateStatementsTask
public UpdateStatementsTask(SearchIndexerImpl.IndexerConfig config, List<org.apache.jena.rdf.model.Statement> changes)
-
-
Method Detail
-
getStatus
public SearchIndexerStatus getStatus()
- Specified by:
getStatusin interfaceSearchIndexerImpl.Task
-
notifyWorkUnitCompletion
public void notifyWorkUnitCompletion(Runnable workUnit)
- Specified by:
notifyWorkUnitCompletionin interfaceSearchIndexerImpl.Task
-
-