org.apache.nutch.clustering.carrot2
Class Clusterer

java.lang.Object
  extended by org.apache.nutch.clustering.carrot2.Clusterer
All Implemented Interfaces:
Configurable, OnlineClusterer, Pluggable

public class Clusterer
extends Object
implements OnlineClusterer, Configurable

This plugin provides an implementation of OnlineClusterer extension using clustering components of the Carrot2 project (http://www.carrot2.org).

This class hardcodes an equivalent of the following Carrot2 process:


   Yahoo Search API -- Lingo Classic Clusterer
 
   
   
   
 
 ]]>


Field Summary
static org.apache.commons.logging.Log logger
           
 
Fields inherited from interface org.apache.nutch.clustering.OnlineClusterer
X_POINT_ID
 
Constructor Summary
Clusterer()
          An empty public constructor for making new instances of the clusterer.
 
Method Summary
 HitsCluster[] clusterHits(HitDetails[] hitDetails, String[] descriptions)
          See OnlineClusterer for documentation.
 Configuration getConf()
          Implementation of Configurable
 void setConf(Configuration conf)
          Implementation of Configurable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.commons.logging.Log logger
Constructor Detail

Clusterer

public Clusterer()
An empty public constructor for making new instances of the clusterer.

Method Detail

clusterHits

public HitsCluster[] clusterHits(HitDetails[] hitDetails,
                                 String[] descriptions)
See OnlineClusterer for documentation.

Specified by:
clusterHits in interface OnlineClusterer
Returns:
A set of HitsCluster objects.

setConf

public void setConf(Configuration conf)
Implementation of Configurable

Specified by:
setConf in interface Configurable

getConf

public Configuration getConf()
Implementation of Configurable

Specified by:
getConf in interface Configurable


Copyright © 2006 The Apache Software Foundation