com.raritantechnologies.federated
Class FederatedQueryProcessorFilter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.QueryProcessorFilter
      extended bycom.raritantechnologies.federated.FederatedQueryProcessorFilter
All Implemented Interfaces:
IQueryProcessor

public class FederatedQueryProcessorFilter
extends QueryProcessorFilter

Enables a set of sources to be explicitly federated to combine results from different sources.

XML Configuration Template:
   <SourceType name="[ name of FederatedQueryProcessorFilter source]"
             type="QueryProcessorFilterSource"
             sourceFactoryClass = "com.raritantechnologies.searchApp.QueryProcessorFilterFactory"
             filterClass  = "com.raritantechnologies.federated.FederatedQueryProcessorFilter"
             inputSources  = "[ comma separated list of names of SearchSources that collects the results to sort ]"  >

       <!-- Alternatively can specify sources here -->
       <Source name="search source name" securityManager="[ optional security manager name ]" />

   </SourceType>
 


Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.QueryProcessorFilter
theQueryProcessor
 
Constructor Summary
FederatedQueryProcessorFilter()
           
 
Method Summary
 IResultSet executeQuery(java.lang.Integer queryID, ISearchFieldMap searchMap, SourceLoginInfo[] sources, OrderedMap inputParameters, java.lang.Integer pageSize, java.lang.Integer startRec)
          Base implementation executes the query then starts filter chain.
 java.util.List getFederatedSources()
           
 void initialize(org.w3c.dom.Element elem)
          subclasses should override this to initialize themselves.
 
Methods inherited from class com.raritantechnologies.searchApp.QueryProcessorFilter
doExecuteQuery, filterResultSet, getQueryProcessor, getQueryProcessor, getRealSources, setNextFilter, setQueryProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FederatedQueryProcessorFilter

public FederatedQueryProcessorFilter()
Method Detail

executeQuery

public IResultSet executeQuery(java.lang.Integer queryID,
                               ISearchFieldMap searchMap,
                               SourceLoginInfo[] sources,
                               OrderedMap inputParameters,
                               java.lang.Integer pageSize,
                               java.lang.Integer startRec)
                        throws QueryProcessorException
Description copied from class: QueryProcessorFilter
Base implementation executes the query then starts filter chain.

Specified by:
executeQuery in interface IQueryProcessor
Overrides:
executeQuery in class QueryProcessorFilter
Throws:
QueryProcessorException

getFederatedSources

public java.util.List getFederatedSources()

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from class: QueryProcessorFilter
subclasses should override this to initialize themselves.

Overrides:
initialize in class QueryProcessorFilter