|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.dataCollection.GatewayProcessorFilter
Base class for objects that can add / remove or modify IResult items collected by a
ICollectionGateway data collection / processing stream.
Enables data collection processors to be connected into a processing pipeline or 'decision' tree.
Can use a IResultMatcher to filter the data processing stream.
<GatewayOutputProcessor class"[GatewayProcessorFilter class]" >
<!-- 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>
| Field Summary | |
protected java.util.ArrayList |
postProcessorFilters
|
| Fields inherited from interface com.raritantechnologies.searchApp.dataCollection.ICollectionIndexer |
ADD, CREATE, DELETE, UPDATE |
| Constructor Summary | |
GatewayProcessorFilter()
|
|
| Method Summary | |
void |
addOutputProcessor(IGatewayOutputProcessor outputProcessor)
|
void |
addPostProcessor(GatewayProcessorFilter postProcessor)
|
void |
dataComplete()
Data feed is complete. |
protected IResultSet |
filterData(IResultSet data)
|
IResultSet |
filterResultSet(IResultSet data)
|
java.lang.String |
getConfigurationXML()
|
void |
initialize(org.w3c.dom.Element elem)
Initialize the from XML Element. |
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 theOutputProcessor(s) output. |
void |
processResultSet(java.lang.String sessionID,
IResultSet data)
processes the IResultSet (somehow) |
protected java.lang.String |
sendToOutput(IResultSet filteredData)
|
void |
setIndexMode(java.lang.String indexMode)
|
void |
setResultMatcher(IResultMatcher resultMatcher)
|
void |
setUserMatcher(ILoginInfo matchUser)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.ArrayList postProcessorFilters
| Constructor Detail |
public GatewayProcessorFilter()
| Method Detail |
public void addOutputProcessor(IGatewayOutputProcessor outputProcessor)
public void addPostProcessor(GatewayProcessorFilter postProcessor)
public void setResultMatcher(IResultMatcher resultMatcher)
public void setUserMatcher(ILoginInfo matchUser)
public void processResultSet(java.lang.String sessionID,
IResultSet data)
IResultSetProcessor
processResultSet in interface IResultSetProcessorpublic java.lang.String processData(IResultSet data)
processData in interface IGatewayOutputProcessorprotected java.lang.String sendToOutput(IResultSet filteredData)
public void setIndexMode(java.lang.String indexMode)
setIndexMode in interface ICollectionIndexerpublic void dataComplete()
dataComplete in interface IGatewayOutputProcessorpublic IResultSet filterResultSet(IResultSet data)
protected IResultSet filterData(IResultSet data)
public void initialize(org.w3c.dom.Element elem)
IResultSetProcessor
initialize in interface IResultSetProcessor
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic void initialize(java.util.Map initParams)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||