public abstract class AbstractClusterServlet extends AbstractMyrrixServlet
Responds to a request for user or item cluster info, depending on the value of isUser(). When
serving user clusters, it responds to GET request to /user/clusters/count or /user/clusters/[n],
where n is a cluster number. It responds to analogous requests to /item/* for items.
When the final argument is "count", outputs a single number which is the count of clusters. When the argument is a number, returns the
Outputs IDs in CSV or JSON format. When outputting CSV, one ID is written per line. When outputting JSON, the output is an array of IDs.
This is only supported in distributed mode, and when computing clusters in the Computation Layer.
ALL_PARTITIONS_REF_KEY, LOCAL_INPUT_DIR_KEY, PARTITION_KEY, READ_ONLY_KEY, RECOMMENDER_KEY, RESCORER_PROVIDER_KEY, TIMINGS_KEY| Constructor and Description |
|---|
AbstractClusterServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected abstract boolean |
isUser() |
getConsiderKnownItems, getHowMany, getRecommender, getRescorerParams, getRescorerProvider, getTiming, getUnnormalizedPartitionToServe, init, output, servicedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected abstract boolean isUser()
protected final void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionCopyright © 2012-2013 Myrrix Ltd. All Rights Reserved.