com.raritantechnologies.concept
Class FactRelationshipOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
      extended bycom.raritantechnologies.concept.FactRelationshipOutputProcessor
All Implemented Interfaces:
ICollectionIndexer, IConfigurable, IGatewayOutputProcessor, IResultSetProcessor

public class FactRelationshipOutputProcessor
extends GatewayProcessorFilter

Uses IFactRelationshipExtractors to extract Term Relationship facts and create a derived result set from these relationships.

XML Configuration Template:
  <OutputProcessor class="com.raritantechnologies.concept.FactRelationshipOutputProcessor"
                      termField=" result field where subject term is stored ]"
                      associatedTermField="[ field that gets associated term (object) ]"
                      factRelationshipField="[ field that gets fact relationship 'statement' ]"
                      additionalFields="[ comma separated list of additional fields to be copied to output result ]" >

    <!-- One or more FactRelationshipExtractors -->
    <FactRelationshipExtractor class="[ class of com.raritantechnologies.concept.IFactRelationshipExtractor ]" >

    </FactRelationshipExtractor>

    <!-- etc. . . -->

    <!-- Gateway Output Processor to handle related document results -->
    <OutputProcessor class="[ class of com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor ]" >

    </OutputProcessor>

  </OutputProcessor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
postProcessorFilters
 
Fields inherited from interface com.raritantechnologies.searchApp.dataCollection.ICollectionIndexer
ADD, CREATE, DELETE, UPDATE
 
Constructor Summary
FactRelationshipOutputProcessor()
           
 
Method Summary
protected  IResultSet filterData(IResultSet data)
           
 void initialize(org.w3c.dom.Element elem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 
Methods inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
addOutputProcessor, addPostProcessor, dataComplete, filterResultSet, getConfigurationXML, initialize, initialize, processData, processResultSet, sendToOutput, setIndexMode, setResultMatcher, setUserMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactRelationshipOutputProcessor

public FactRelationshipOutputProcessor()
Method Detail

filterData

protected IResultSet filterData(IResultSet data)
Overrides:
filterData in class GatewayProcessorFilter

initialize

public void initialize(org.w3c.dom.Element elem,
                       ISearchFieldMap sfMap)
Description copied from interface: IGatewayOutputProcessor
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor
Overrides:
initialize in class GatewayProcessorFilter