com.raritantechnologies.verity.collection
Class ODKOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.verity.collection.ODKOutputProcessor
All Implemented Interfaces:
IGatewayOutputProcessor

public class ODKOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor

Uses Verity K2 ODK Indexer interface to send records to Verity K2 Indexer for indexing.

XML Configuration Template:
 <GatewayOutputProcessor class="com.raritantechnologies.verity.collection.ODKOutputProcessor"
        k2IndexSpec="[k2 host:port of index server]"
        workspaceName="[ Unique name of indexing workspace ]"
        locale="[ verity K2 locale (e.g. englishx) ]"
        collectionName="[ name of k2 Collection ]"
        fullTextFileField="[result field ID for full text URL]"
        fullTextDataField="[ result field that contains full text data ]"
        contentTypeField="[ name of field that contains content type ]"
        indexMode="[ INSERT | CREATE | UPDATE | DELETE ]" >

    <VerityFieldMap>
      <Field fieldID="[ abstract (RTI) fieldID ]" verityField="[ verity field name ]" value="[ optional fixed value ]"
                vdkvgwField="[true|false( default ) ]" isZone="[true|false(default) ]" />

    </VerityFieldMap>

 </GatewayOutputProcessor>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
ODKOutputProcessor()
           
 
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

ODKOutputProcessor

public ODKOutputProcessor()
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()
Description copied from interface: IGatewayOutputProcessor
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