|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.dcs.http.xmlrpc.Carrot2XmlRpcHandler
public class Carrot2XmlRpcHandler
A simple XML-RPC handler for clustering requests.
| Constructor Summary | |
|---|---|
Carrot2XmlRpcHandler(AppConfig config)
Creates a new XML-RPC handler with the given configuration. |
|
| Method Summary | |
|---|---|
Vector |
doCluster(String query,
Hashtable processingOptions,
Hashtable processParameters,
Vector documents)
Clusters documents in documents array and returns an array of
clusters to the caller. |
String |
doEcho(String in)
Echo method to test if XML-RPC is operational. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Carrot2XmlRpcHandler(AppConfig config)
| Method Detail |
|---|
public Vector doCluster(String query,
Hashtable processingOptions,
Hashtable processParameters,
Vector documents)
Clusters documents in documents array and returns an array of
clusters to the caller.
The input format is a sequence (vector) of tuples describing documents. Here is an example:
String id // Document #1 String url String title String snippet String id // Document #1 String url String title String snippet ... String id // Document #n String url String title String snippetNote that if an element is empty,
null should be passed (all
elements must be present).
The output format is a sequence (vector) of maps, each describing a single group. Here is an example:
String label vector<String> documents vector<Map> subclustersWhere subclusters are defined recursively in an identical way.
query - The query.processingOptions - Configuration options. See ProcessingOptionNames
for possible keys.processParameters - Parameters passed to the clustering process.documents - Input vector of documents.public final String doEcho(String in)
in - Any string.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||