com.raritantechnologies.concept.classifier
Class ClassifierUpdateProcessor

java.lang.Object
  extended bycom.raritantechnologies.concept.classifier.ClassifierUpdateProcessor
All Implemented Interfaces:
IConfigurable, IGatewayOutputProcessor, IResultSetProcessor

public class ClassifierUpdateProcessor
extends java.lang.Object
implements IGatewayOutputProcessor, IResultSetProcessor

Maintains a set of database tables for a classifier (i.e. an IFieldFormatter) or set of classifiers to keep track of changes in the category taxonomy and with the document set.

Document Table:

Classifier Table:

XML Configuration Template:
   <OutputProcessor class="com.raritantechnologies.concept.classifier.ClassifierUpdateProcessor" 
                       databaseConnectionManager="[ name of RTI IDatabaseConnectionManager ]"
                       documentIDField="[ result ID field ]"
                       classifierTable="[ name of classifier table in DB ]" >

     <!-- One or more classifiers -->
     <Classifier class="[ class of com.raritantechnologies.searchApp.IFieldFormatter ]"
                    ID="[ classifier ID ]"
                    classifierFields="[ fields in result that classifier will affect ]" >

     </Classifier>

   </OutputProcessor>
 


Constructor Summary
ClassifierUpdateProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete.
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element elem)
          Initialize the from XML Element.
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 void initialize(java.util.Map initParameters)
          Used for dynamic initialization
 java.lang.String processData(IResultSet data)
          returns name of XML File created/appended.
 void processResultSet(java.lang.String sessionID, IResultSet data)
          processes the IResultSet (somehow)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassifierUpdateProcessor

public ClassifierUpdateProcessor()
Method Detail

processResultSet

public void processResultSet(java.lang.String sessionID,
                             IResultSet data)
Description copied from interface: IResultSetProcessor
processes the IResultSet (somehow)

Specified by:
processResultSet in interface IResultSetProcessor

processData

public java.lang.String processData(IResultSet data)
Description copied from interface: IGatewayOutputProcessor
returns name of XML File created/appended.

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Description copied from interface: IGatewayOutputProcessor
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem,
                       ISearchFieldMap sfMap)
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor

initialize

public void initialize(java.util.Map initParameters)
Used for dynamic initialization

Specified by:
initialize in interface IGatewayOutputProcessor

getConfigurationXML

public java.lang.String getConfigurationXML()
Specified by:
getConfigurationXML in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IResultSetProcessor
Initialize the from XML Element.

Specified by:
initialize in interface IResultSetProcessor