public final class IngestServlet extends AbstractMyrrixServlet
Responds to a POST request to /ingest and in turn calls
MyrrixRecommender.ingest(Reader)}. The content of the request body is
fed to this method. Note that the content may be gzipped; if so, header "Content-Encoding"
must have value "gzip".
Alternatively, CSV data may be POSTed here as if part of a web browser file upload. In this case the "Content-Type" should be "multipart/form-data", and the payload encoded accordingly. The uploaded file may be gzipped or zipped.
ALL_PARTITIONS_REF_KEY, LOCAL_INPUT_DIR_KEY, PARTITION_KEY, READ_ONLY_KEY, RECOMMENDER_KEY, RESCORER_PROVIDER_KEY, TIMINGS_KEY| Constructor and Description |
|---|
IngestServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
getConsiderKnownItems, getHowMany, getRecommender, getRescorerParams, getRescorerProvider, getTiming, getUnnormalizedPartitionToServe, init, output, servicedoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, serviceprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionCopyright © 2012-2013. All Rights Reserved.