Class CompositeSearchSource

java.lang.Object
ubic.gemma.core.search.source.CompositeSearchSource
All Implemented Interfaces:
SearchSource

public class CompositeSearchSource extends Object implements SearchSource
A search source constituted of multiple other sources.

Sources are used in the order they are passed to the CompositeSearchSource(List) constructor.

This source checks if the SearchSource are accepted by each individual source with SearchSource.accepts(SearchSettings) and subsequently delegate the operation.

It also supports logging of the time spent by each source and the number of results found. This is done at the DEBUG level unless the value set by setWarningThresholdMills(int) or setFastWarningThresholdMillis(int) is exceeded in which case WARNING is used.

Author:
poirigui