public abstract class AbstractAllIDsServlet extends AbstractMyrrixServlet
Responds to a GET request to /user/allIDs or /item/allIDs, and in turn calls
MyrrixRecommender.getAllUserIDs() or MyrrixRecommender.getAllItemIDs(), depending on
isUserIDs().
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.
ALL_PARTITIONS_REF_KEY, LOCAL_INPUT_DIR_KEY, PARTITION_KEY, READ_ONLY_KEY, RECOMMENDER_KEY, RESCORER_PROVIDER_KEY, TIMINGS_KEY| Constructor and Description |
|---|
AbstractAllIDsServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected abstract boolean |
isUserIDs() |
getConsiderKnownItems, getHowMany, getRecommender, getRescorerParams, getRescorerProvider, getTiming, getUnnormalizedPartitionToServe, init, output, servicedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected abstract boolean isUserIDs()
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. All Rights Reserved.