Class DocumentModifierListDeveloper
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.documentBuilding.DocumentModifierListDeveloper
-
- All Implemented Interfaces:
DocumentModifierList
public class DocumentModifierListDeveloper extends Object implements DocumentModifierList
An implementation that accumulates timing figures for each modifier and writes them to the log. Note that this must be thread-safe.
-
-
Constructor Summary
Constructors Constructor Description DocumentModifierListDeveloper(Collection<? extends DocumentModifier> modifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmodifyDocument(Individual ind, SearchInputDocument doc)Each time a modifier is run, accumulate the timings for it.voidstartIndexing()Do any required setup on the individual modifiers.voidstopIndexing()Write the timings to the log.
-
-
-
Constructor Detail
-
DocumentModifierListDeveloper
public DocumentModifierListDeveloper(Collection<? extends DocumentModifier> modifiers)
-
-
Method Detail
-
startIndexing
public void startIndexing()
Description copied from interface:DocumentModifierListDo any required setup on the individual modifiers.- Specified by:
startIndexingin interfaceDocumentModifierList
-
modifyDocument
public void modifyDocument(Individual ind, SearchInputDocument doc)
Each time a modifier is run, accumulate the timings for it.- Specified by:
modifyDocumentin interfaceDocumentModifierList
-
stopIndexing
public void stopIndexing()
Write the timings to the log.- Specified by:
stopIndexingin interfaceDocumentModifierList
-
-