com.raritantechnologies.searchApp
Class QueryProcessorMemorySourceFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.XMLSearchSourceFactory
      extended bycom.raritantechnologies.searchApp.QueryProcessorMemorySourceFactory
All Implemented Interfaces:
InMemoryInitializer, IXMLSearchSourceFactory

public class QueryProcessorMemorySourceFactory
extends XMLSearchSourceFactory
implements InMemoryInitializer

Creates an InMemorySearchSource from a SearchSource by executing a set of queries. to get a set of IResultSets. Adds each result to an InMemorySearchSource.

XML Configuration Template:
  <SourceType name="AMemorySource" type="InMemorySearchSource" 
                 displayName="Some search source"
                 sourceFactoryClass="com.raritantechnologies.searchApp.QueryProcessorMemorySourceFactory" 
                 queryProcessor="com.raritantechnologies.searchApp.InMemorySearchSource"
                 sourceName="[the Source that will be made into a memory source]" >
 
    <QueryList>
      <Query>
        <Field ID="item_id" value="*" />
      </Query>
    </QueryList>

  </SourceType>
  

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
QueryProcessorMemorySourceFactory()
           
 
Method Summary
 SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem, ISearchFieldMapFactory factory)
           
 void initialize(InMemorySearchSource memSS, java.lang.String sourceName)
           
 
Methods inherited from class com.raritantechnologies.searchApp.XMLSearchSourceFactory
changeBasePath, initializeFieldFormatters, initializeSource, initializeStaticFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryProcessorMemorySourceFactory

public QueryProcessorMemorySourceFactory()
Method Detail

createSearchSources

public SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem,
                                          ISearchFieldMapFactory factory)
Specified by:
createSearchSources in interface IXMLSearchSourceFactory
Specified by:
createSearchSources in class XMLSearchSourceFactory

initialize

public void initialize(InMemorySearchSource memSS,
                       java.lang.String sourceName)
Specified by:
initialize in interface InMemoryInitializer