com.raritantechnologies.searchApp.dataCollection
Class DeduplicatingGatewayProcessorFilter

java.lang.Object
  extended bycom.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
      extended bycom.raritantechnologies.searchApp.dataCollection.DeduplicatingGatewayProcessorFilter
All Implemented Interfaces:
ICollectionIndexer, IConfigurable, IGatewayOutputProcessor, IResultSetProcessor

public class DeduplicatingGatewayProcessorFilter
extends GatewayProcessorFilter

Deduplicates results that pass through the filter based on one or more key field(s) that should have a globally unique value. The filter will remove duplicates for any results that have the same value(s) for the key field(s).

XML Configuration Template:
 <GatewayOutputProcessor class"com.raritantechnologies.searchApp.dataCollection.DeduplicatingGatewayProcessorFilter"
                            keyField="[ field(s) that will have the unique key used to deduplicate ]" >

    <!-- Optional result matcher to filter the result set -->
    <ResultMatcher class="[IResultMatcher class]" >

    </ResultMatcher>

    <!-- One or more Proxy output processor that will get the filtered data set -->
    <OutputProcessor class="[IGatewayOutputProcessor class]" >
      <!-- OutputProcessor details -->
    </OutputProcessor>

    <!-- Additional result set filters that operate on the data after initial processing -->
    <PostProcessor class="[GatewayProcessorFilter class ]" >
      <!-- PostProcessor details -->
    </PostProcessor>
 </GatewayOutputProcessor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
postProcessorFilters
 
Fields inherited from interface com.raritantechnologies.searchApp.dataCollection.ICollectionIndexer
ADD, CREATE, DELETE, UPDATE
 
Constructor Summary
DeduplicatingGatewayProcessorFilter()
           
 
Method Summary
 void dataComplete()
          Data feed is complete.
 void initialize(org.w3c.dom.Element elem)
          Initialize the from XML Element.
 void initialize(org.w3c.dom.Element elem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 java.lang.String processData(IResultSet data)
          returns theOutputProcessor(s) output.
 
Methods inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
addOutputProcessor, addPostProcessor, filterData, filterResultSet, getConfigurationXML, initialize, processResultSet, sendToOutput, setIndexMode, setResultMatcher, setUserMatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeduplicatingGatewayProcessorFilter

public DeduplicatingGatewayProcessorFilter()
Method Detail

processData

public java.lang.String processData(IResultSet data)
Description copied from class: GatewayProcessorFilter
returns theOutputProcessor(s) output. filters the data (can add or remove result items)

Specified by:
processData in interface IGatewayOutputProcessor
Overrides:
processData in class GatewayProcessorFilter

dataComplete

public void dataComplete()
Description copied from class: GatewayProcessorFilter
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor
Overrides:
dataComplete in class GatewayProcessorFilter

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
Overrides:
initialize in class GatewayProcessorFilter

initialize

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

Specified by:
initialize in interface IGatewayOutputProcessor
Overrides:
initialize in class GatewayProcessorFilter