public final class EstimateForAnonymousServlet extends AbstractMyrrixServlet
Responds to a GET request to
/estimateForAnonymous/[toItemID]/[itemID1(=value1)](/[itemID2(=value2)]/...),
and in turn calls MyrrixRecommender.estimateForAnonymous(long, long[], float[])
with the supplied values. That is, 1 or more item IDs are supplied, which may each optionally correspond to
a value or else default to 1.
Unknown item IDs are ignored, unless all are unknown, in which case a
HttpServletResponse.SC_BAD_REQUEST status is returned.
Outputs the result of the method call as a value on one line.
ALL_PARTITIONS_REF_KEY, LOCAL_INPUT_DIR_KEY, PARTITION_KEY, READ_ONLY_KEY, RECOMMENDER_KEY, RESCORER_PROVIDER_KEY, TIMINGS_KEY| Constructor and Description |
|---|
EstimateForAnonymousServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
getConsiderKnownItems, getHowMany, getRecommender, getRescorerParams, getRescorerProvider, getTiming, getUnnormalizedPartitionToServe, 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.HttpServletIOExceptionCopyright © 2012-2013. All Rights Reserved.