|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.concept.clustering.temis.TemisClusterer
IClusterer implementation that uses the Temis ClusteringServer.
XML Configuration Template:
<Clusterer class="com.raritantechnologies.concept.clustering.temis.TemisClusterer"
temisServerURL="[ URL of Temis Clustering Server ]"
clusterFields="[ comma separated list of field names to use for clustering ]" />
| Constructor Summary | |
TemisClusterer()
|
|
| Method Summary | |
void |
dataComplete()
called by cluster input source when all results to be clustered have been added to the clustering engine. |
QueryResultBean |
getCluster(java.lang.String clusterName)
returns the set of clustered result set keys. |
IResultSet |
getCluster(java.lang.String clusterName,
int pageSize,
int startRec)
returns a set of clustered results for a given key. |
java.util.Set |
getClusterNames()
returns the names of the clusters created. |
QueryResultBeanSet |
getClusterSet()
returns the set of clusters as a QueryResultBeanSet. |
int |
getClusterSize(java.lang.String clusterName)
returns the number of results for a given key. |
java.util.List |
getMatchingClusters(IResult result)
Returns the list of clusters that match this IResult. |
QueryResultBeanSet |
getSubCluster(java.lang.String clusterName)
|
java.util.Iterator |
getSubClusterNames()
if clusterer supports hierarchical clustering. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
processResultSet(IResultSet resultSet)
called by cluster input to add results to the clustering engine. |
void |
setClusterField(java.lang.String clusterField)
|
void |
setClusterFields(java.lang.String[] clusterFields)
|
void |
setLabelField(java.lang.String labelField)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TemisClusterer()
| Method Detail |
public void setClusterFields(java.lang.String[] clusterFields)
public void setClusterField(java.lang.String clusterField)
public void setLabelField(java.lang.String labelField)
public void processResultSet(IResultSet resultSet)
IClusterer
processResultSet in interface IClustererpublic void dataComplete()
dataComplete in interface IClustererpublic java.util.Set getClusterNames()
getClusterNames in interface IClustererpublic int getClusterSize(java.lang.String clusterName)
getClusterSize in interface IClustererpublic QueryResultBeanSet getClusterSet()
getClusterSet in interface IClustererpublic QueryResultBean getCluster(java.lang.String clusterName)
getCluster in interface IClusterer
public IResultSet getCluster(java.lang.String clusterName,
int pageSize,
int startRec)
getCluster in interface IClustererpublic java.util.Iterator getSubClusterNames()
IClusterer
getSubClusterNames in interface IClustererpublic QueryResultBeanSet getSubCluster(java.lang.String clusterName)
getSubCluster in interface IClustererpublic java.util.List getMatchingClusters(IResult result)
getMatchingClusters in interface IClustererpublic void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||