|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.SearchSource
com.raritantechnologies.searchApp.dataCollection.DataCollectorSearchSource
SearchSource used to test data collection pipelines - puts result sets into an InMemorySearchSource or LuceneSearchSource.
Can also be used to keep a temporary cache of data feeds. Adds date field to the results can be configured to query and remove results from InMemorySearchSource as results age. XML Configuration Template:
<SourceType name="gatewaySource" type="DataCollectorSource"
sourceFactoryClass="com.raritantechnologies.searchApp.dataCollection.DataCollectorSearchSource"
queryProcessor="com.raritantechnologies.searchApp.dataCollection.DataCollectorSearchSource" >
<CollectionGateway class="[ implementation of ICollectionGateway]" >
</CollectionGateway>
<GatewayOutputProcessor>
</GatewayOutputProcessor>
<JobSchedule schedulerClass="[some JobScheduleClass]" >
</JobSchedule>
<!-- Optional Jobs that should run after a collection update -->
<JobProcess>
</JobProcess>
</SourceType>
| Field Summary |
| Fields inherited from class com.raritantechnologies.searchApp.SearchSource |
ID_FIELD, IS_FEDERATED, NUMBER_OF_FIELDS, SECURE, SOURCE_NAME, SOURCE_TYPE, TITLE_FIELD, URL_FIELD |
| Constructor Summary | |
DataCollectorSearchSource()
|
|
| Method Summary | |
SearchSource[] |
createSearchSources(org.w3c.dom.Element sourceElem,
ISearchFieldMapFactory factory)
|
void |
dataComplete(java.lang.Object gateway)
Message sent by ICollectionGateway after the last IResultSet has been submitted for processing. |
void |
executeJob(RaritanPageContext rpc)
|
void |
executeJob(java.lang.String[] args)
|
IResultSet |
executeQuery(java.lang.Integer queryID,
ISearchFieldMap searchMap,
SourceLoginInfo[] sources,
OrderedMap inputParameters,
java.lang.Integer pageSize,
java.lang.Integer startRec)
Executes a Query. |
void |
gatewayFailed(java.lang.String failedMessage)
|
java.lang.String |
getConfigurationXML()
|
java.lang.Object |
getProperty(java.lang.String property)
returns a Source Property. |
IQueryProcessor |
getQueryProcessor()
returns the type of QueryProcessor that can access this SearchSource. |
java.lang.String[] |
getSourcePropertyNames()
Returns a list of Source type specific property names. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
initializeSource(org.w3c.dom.Element sourceElem,
SearchSource source)
|
void |
processData(IResultSet dataSet)
Command to process a set of results generated by an ICollectionGateway implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataCollectorSearchSource()
| Method Detail |
public IQueryProcessor getQueryProcessor()
SearchSource
getQueryProcessor in class SearchSource
public IResultSet executeQuery(java.lang.Integer queryID,
ISearchFieldMap searchMap,
SourceLoginInfo[] sources,
OrderedMap inputParameters,
java.lang.Integer pageSize,
java.lang.Integer startRec)
throws QueryProcessorException
IQueryProcessor
executeQuery in interface IQueryProcessorqueryID - Unique ID for this query. Used by front end to manage queries and
query pages. QueryProcessor may use this parameter to organize its search results, and
to organize any state information it needs to process future page requests
(future executeQuery( ) calls with the same queryID.searchMap - Provides mapping information needed to translate the inputParameters
into a search string appropriate for this type of QueryProcessor.
Mapping information is obtained by the application framework from
local configuration data.sources - The LoginInfo and SearchSource(s) to be used for this query. The SearchSource(s)
must be of the appropriate type for the QueryProcessor.inputParameters - Form inputs. Use ISearchFieldMap to translate these into
implementation and source-specific fields.pageSize - Integer specifying the number of results to include in the returned
Document.
if null - use the default page size.startRec - Integer specifying the starting record in the result set to be returned.
if null - start with the first record.
QueryProcessorExceptionpublic java.lang.String[] getSourcePropertyNames()
SearchSource
getSourcePropertyNames in class SearchSourcepublic java.lang.Object getProperty(java.lang.String property)
SearchSource
getProperty in class SearchSource
public SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem,
ISearchFieldMapFactory factory)
createSearchSources in interface IXMLSearchSourceFactory
public void initializeSource(org.w3c.dom.Element sourceElem,
SearchSource source)
initializeSource in interface IXMLSearchSourceFactorypublic void processData(IResultSet dataSet)
IGatewayListener
processData in interface IGatewayListenerpublic void dataComplete(java.lang.Object gateway)
dataComplete in interface IGatewayListenerpublic void gatewayFailed(java.lang.String failedMessage)
gatewayFailed in interface IGatewayListenerpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IJobProcesspublic void executeJob(RaritanPageContext rpc)
executeJob in interface IJobProcesspublic void executeJob(java.lang.String[] args)
executeJob in interface IJobProcesspublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IJobProcess
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||