com.raritantechnologies.verity.collection
Class ZoneCollectorProcessorFilter

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

public class ZoneCollectorProcessorFilter
extends GatewayProcessorFilter

Zone collector for RTI Collection building framework. Uses Raritan ProgrammableSAXFilter to extract zone names from XML Results using configurable ElementComparators. The zones are deduplicated so that when all of the results are processed, the resulting zone list represents the set of zones that are present in at least one result.

NOTE: Should be used as a post-processor if the StyleFileGenerator is used as part of the collection build pipeline.

XML Configuration Template:
  <PostProcessor class="com.raritantechnologies.verity.collection.ZoneCollectorProcessorFilter"
                    styleFileName="[syle.zon input/output path]" >

    <!-- SAX filter comparators: extract elements from the XML stream to be used as Verity zones. -->
    <Comparators>
       <Comparator class="com.raritantechnologies.xml.sax.filter.comparators.RegExprComparator" >
         <TagNamePattern>TaxID_(.*)</TagNamePattern>
       </Comparator>
    </Comparators>

    <!-- Optional Flat output file for zone property lookup -->
    <!-- First field is the zone name itself, additional columns can use StringFilters -->
    <ZoneOutputFile fileName="[name for zone flat file]" >
      <FilteredColumn stringFilter="[A type of StringFilter]" >
      </FilteredColumn>
    </ZoneOutputFile>

  </PostProcessor>

 

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
ZoneCollectorProcessorFilter()
           
 
Method Summary
 void addTagName(java.lang.String tagName)
           
 void dataComplete()
          Data feed is complete.
protected  IResultSet filterData(IResultSet data)
           
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 
Methods inherited from class com.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
addOutputProcessor, addPostProcessor, filterResultSet, getConfigurationXML, initialize, initialize, processData, 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

ZoneCollectorProcessorFilter

public ZoneCollectorProcessorFilter()
Method Detail

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

filterData

protected IResultSet filterData(IResultSet data)
Overrides:
filterData in class GatewayProcessorFilter

addTagName

public void addTagName(java.lang.String tagName)

dataComplete

public void dataComplete()
Data feed is complete.

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