|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.clustering.FacetedResultSetProcessor
Generates a two-dimensional Facet map from a set of IResult objects. The map contains
a list of facets (mapped to result fields) and each facet is associated with a map of facet value to result ID list. The
processor generates an output XML that can be written to an IXMLPersist object.
<ResultSetProcessor class="com.raritantechnologies.concept.clustering.FacetedResultSetProcessor"
resultFacetFields="[ comma separated list of result fields to create the facets from ]"
rootTagName="[ name of the root XML tag: default='Facets' ]"
facetTagName="[ name of facet tag: default='Facet' ]"
valueTagName="[ name of the value tag: default='Value' ]"
valueTextTagName="[ name of the value text tag: default='Text' ]"
countTagName="[ name of count field in output result: default='Count' ]" >
<!-- Object that can save the generated XML -->
<XMLPersist class="[ class of com.raritantechnologies.xml.dataCollection.IXMLPersist ]" >
</XMLPersist>
<OutputFields>
<Field ID="[ result field ID ]" resultTag="[ tagname in result XML ]" />
</OutputFields>
<!-- Optional OutputProcessor that can process the Facet Results -->
<OutputProcessor class="[ class of com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor"
nestedResultsField="[ field that gets the results that cluster on a particular facet value ]" >
</OuputProcessor>
</ResultSetProcessor>
Output XML Format:
<Facets>
<!-- One or more Facet tags: -->
<Facet name="[ name of facet field ]" >
<!-- One or more Value tags: -->
<Value>
<Text>[ value of facet ]</Text>
<!-- One or more Result tags that contain this value -->
<Result>[Output fields of Result]</Result>
<Result>[etc...]</Result>
</Value>
<Value>
<!-- etc... -->
</Value>
</Facet>
<Facet name="[ name of the facet field ]" >
<!-- etc... -->
</Facet>
</Facets>
Developed by
Raritan Technologies .
| Constructor Summary | |
FacetedResultSetProcessor()
|
|
| Method Summary | |
INavigator |
createNavigator(IResultSet resSet)
|
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
java.util.Map |
getFacetMap()
Returns the Computed Facet map: Facet field --> facet value map. |
IResultSet |
getFacetMapResultSet()
|
java.lang.String |
getFacetMapXML()
|
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. |
void |
initialize(java.util.Map initMap)
Dynamic initialization. |
java.lang.String |
processData(IResultSet resSet)
returns name of XML File created/appended. |
void |
processResultSet(java.lang.String sessionID,
IResultSet resSet)
processes the IResultSet (somehow) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FacetedResultSetProcessor()
| Method Detail |
public INavigator createNavigator(IResultSet resSet)
public java.util.Map getFacetMap()
public java.lang.String getFacetMapXML()
public java.lang.String processData(IResultSet resSet)
IGatewayOutputProcessor
processData in interface IGatewayOutputProcessor
public void processResultSet(java.lang.String sessionID,
IResultSet resSet)
IResultSetProcessor
processResultSet in interface IResultSetProcessorpublic void dataComplete()
IResultSetProcessor
dataComplete in interface IResultSetProcessorpublic IResultSet getFacetMapResultSet()
public void initialize(org.w3c.dom.Element elem)
IResultSetProcessor
initialize in interface IResultSetProcessor
public void initialize(org.w3c.dom.Element elem,
ISearchFieldMap sfMap)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic void initialize(java.util.Map initMap)
IResultSetProcessor
initialize in interface IResultSetProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||