Class SearchIndexExcluderListDeveloper
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchindex.exclusions.SearchIndexExcluderListDeveloper
-
- All Implemented Interfaces:
SearchIndexExcluderList
public class SearchIndexExcluderListDeveloper extends Object implements SearchIndexExcluderList
An implementation that accumulates timing figures for each excluder and writes them to the log. Note that this must be thread-safe.
-
-
Constructor Summary
Constructors Constructor Description SearchIndexExcluderListDeveloper(Collection<? extends SearchIndexExcluder> excluders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExcluded(Individual ind)Each time a excluder is run, accumulate the timings for it.voidstartIndexing()Do any required setup on the individual Excluders.voidstopIndexing()Write the timings to the log.
-
-
-
Constructor Detail
-
SearchIndexExcluderListDeveloper
public SearchIndexExcluderListDeveloper(Collection<? extends SearchIndexExcluder> excluders)
-
-
Method Detail
-
startIndexing
public void startIndexing()
Description copied from interface:SearchIndexExcluderListDo any required setup on the individual Excluders.- Specified by:
startIndexingin interfaceSearchIndexExcluderList
-
isExcluded
public boolean isExcluded(Individual ind)
Each time a excluder is run, accumulate the timings for it. Note that those at the top of the list will run more times than those at the bottom.- Specified by:
isExcludedin interfaceSearchIndexExcluderList
-
stopIndexing
public void stopIndexing()
Write the timings to the log.- Specified by:
stopIndexingin interfaceSearchIndexExcluderList
-
-