public final class EstimateServlet extends AbstractMyrrixServlet
Responds to a GET request to /estimate/[userID]/[itemID] and in turn calls
Recommender.estimatePreference(long, long).
Outputs the result of the method call as a value on one line.
This servlet can also compute several estimates at once. Send a GET request to
/estimate/[userID]/[itemID1](/[itemID2]/...). The output are estimates, in the same
order as the item ID, one per line.
ALL_PARTITIONS_REF_KEY, LOCAL_INPUT_DIR_KEY, PARTITION_KEY, RECOMMENDER_KEY, RESCORER_PROVIDER_KEY, TIMINGS_KEY| Constructor and Description |
|---|
EstimateServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected Integer |
getPartitionToServe(javax.servlet.http.HttpServletRequest request,
int numPartitions) |
determineResponseType, getConsiderKnownItems, getHowMany, getRecommender, getRescorerParams, getRescorerProvider, getTiming, init, output, servicedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionprotected Integer getPartitionToServe(javax.servlet.http.HttpServletRequest request, int numPartitions)
getPartitionToServe in class AbstractMyrrixServletCopyright © 2012. All Rights Reserved.