com.raritantechnologies.exalead
Class ExaleadOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.exalead.ExaleadOutputProcessor
All Implemented Interfaces:
IConfigurable, IGatewayOutputProcessor

public class ExaleadOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor, IConfigurable

Indexes IResultSets into a Exalead Collection.

XML Configuration Template:
    <GatewayOutputProcessor class="com.raritantechnologies.exalead.ExaleadOutputProcessor" >

      <CategoryFields>
        <Field ID="[ abstract field ID ]" />
      </CategoryFields>

      <MetaDataFields>
        <Field ID="[ abstract field ID ]" exaleadField="[ name of field in Exalead index ]" />
        <Field etc... >
      </MetaDataFields>

      <SummaryFields>
        <Field ID="[ abstract field ID ]" exaleadField="[ name of field in Exalead index ]" />
        <Field etc... >
      </SummaryFields>

      <HeaderFields>
         <Field ID="[ abstract field ID ]" exaleadField="[ name of field in Exalead index ]"
                   type="[ one of Text|Date|Time|Signed|Unsigned ]" />

         <!-- Date field types require a Date Format to convert the value to a YYYY/mm/dd Date ]" />
         <Field ID="[ abstract field ID ]" exaleadField="[ name of field in Exalead index ]"
                   type="Date" dateFormat="[ input date format ]" />

         <!-- Time field types require a Date Format to convert the value to a YYYY/mm/dd Date HH:mm:ss ]" />
         <Field ID="[ abstract field ID ]" exaleadField="[ name of field in Exalead index ]"
                   type="Time" timeFormat="[ input date format ]" />
      </HeaderFields>

      <Pages>
        <Page>
           <!-- One or more Field tags (as above) -->
           <Field ID="[ abstract field ID ]" exaleadField="[ name of field in Exalead index ]"
                     type="[ one of Text|Date|Time|Signed|Unsigned ]" />
        </Page>

        <Page>
          <!-- etc... -->
        </Page>

      </Pages>

    </GatewayOutputProcessor>
  

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
ExaleadOutputProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete.
 void initialize(org.w3c.dom.Element outputProcElem)
          Initializes the object from an XML tag or element.
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Element.
 java.lang.String processData(IResultSet data)
          returns name of XML File created/appended.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor
getConfigurationXML, initialize
 

Constructor Detail

ExaleadOutputProcessor

public ExaleadOutputProcessor()
Method Detail

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()
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable

initialize

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

Specified by:
initialize in interface IGatewayOutputProcessor