com.raritantechnologies.verity.parametric.PIBuild
Class PICollectionOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.verity.parametric.PIBuild.PICollectionOutputProcessor
All Implemented Interfaces:
IGatewayOutputProcessor

public class PICollectionOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor

Implementation of GatewayOutputProcessor which coordinates the building of a Verity Collection and a Parametric Index. Contains a "CollectionBuilder" - which must be an implementation of GatewayOutputProcessor that creates a VerityCollection and a "PIBaker" which must be an implementation of GatewayOutputProcessor that creates a Verity Parametric Index.

XML Configuration Template:
 <GatewayOutputProcessor name="PIBuildProc" 
    class="com.raritantechnologies.verity.parametric.PIBuild.PICollectionOutputProcessor" >

  <CollectionBuilder class="com.raritantechnologies.verity.collection.BIFOutputProcessor" >
    <!-- data needed by CollectionBuilder class -->
    <CollectionName>BASE_PATH/testColl</CollectionName>
  </CollectionBuilder>

  <PIBaker class="com.raritantechnologies.verity.parametric.PIBuild.ParametricIndexOutputProcessor" >
    <!-- data needed by PIBaker class -->

   <ParametricIndexName>BASE_PATH/SomePI</ParametricIndexName>
  </PIBaker>

  <PostProcessJob class="[some implementation if IJobProcess]" >

  </PostProcessJob>

 </GatewayOutputProcessor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
PICollectionOutputProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete...
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 void initialize(java.util.Map initParams)
          Used for dynamic initialization (connection, collection name, file name, etc.)
 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
 

Constructor Detail

PICollectionOutputProcessor

public PICollectionOutputProcessor()
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(java.util.Map initParams)
Description copied from interface: IGatewayOutputProcessor
Used for dynamic initialization (connection, collection name, file name, etc.)

Specified by:
initialize in interface IGatewayOutputProcessor

initialize

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

Specified by:
initialize in interface IGatewayOutputProcessor

getConfigurationXML

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