com.raritantechnologies.uima
Class UIMACPEOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.uima.UIMACPEOutputProcessor
All Implemented Interfaces:
IGatewayOutputProcessor

public class UIMACPEOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor

Feeds a UIMA Collection Processing Engine from a series of RTI IResultSets. Uses a configurable IUIMAResultProcessor as the UIMA CasConsumer.

XML Configuration Template:
   <GatewayOutputProcessor class="com.raritantechnologies.uima.UIMACPEOutputProcessor" 
                              analysisEngineFile="[ configuration File for UIMA Analysis Engine ]"
                              resultKeyField="[ result field that has unique key ]"
                              textFields="[ comma separated list of fields with text data ]"
                              documentFields="[ fields with document URLs ]" >

     <!-- One or more ResultProcessor elements to handle dispatching of Annotated results -->
     <ResultProcessor class="[ class of com.raritantechnologies.uima.IUIMAResultProcessor ]" >
       <!-- configuration parameters for result processor... -->
     </ResultProcessor>

     <!-- etc. . . -->

   </GatewayOutputProcessor>
 

The following diagram shows the basic design of the UIMACPEOutputProcessor:




Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
UIMACPEOutputProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete: Signal the IUIMAResultProcessors to execute their dataComplete( ) methods.
 CollectionProcessingManager getCollectionProcessingManager()
           
 java.lang.String getConfigurationXML()
           
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Element.
 void initialize(java.util.Map initParams)
          Used for dynamic initialization (connection, collection name, file name, etc.)
 java.lang.String processData(IResultSet data)
          Process an RTI IResultSet by reading the data into the UIMA processing engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIMACPEOutputProcessor

public UIMACPEOutputProcessor()
Method Detail

processData

public java.lang.String processData(IResultSet data)
Process an RTI IResultSet by reading the data into the UIMA processing engine. Data will be collected by the configured set of IUIMAResultProcessors.

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Data feed is complete: Signal the IUIMAResultProcessors to execute their dataComplete( ) methods.

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)
Initialize the GatewayOutputProcessor from XML Element.

Specified by:
initialize in interface IGatewayOutputProcessor

getConfigurationXML

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

getCollectionProcessingManager

public CollectionProcessingManager getCollectionProcessingManager()