@Singleton @Path(value="/add") public final class Add extends AbstractOryxResource
Responds to POST request to /add. The input is one or more data points
to add to the clustering, one for each line of the request body. Each data point is a
delimited line of input like "1,-4,3.0". Also, one data point can be supplied by
POSTing to /add/[datum]. The clusters update to learn in some way from the new data.
The response is empty.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY| Constructor and Description |
|---|
Add() |
| Modifier and Type | Method and Description |
|---|---|
void |
post(javax.servlet.http.HttpServletRequest request) |
void |
post(Reader reader) |
void |
post(String datum) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInputgetInputProducer, getServingModelManager, init@POST
@Consumes(value={"text/plain","text/csv","application/json"})
public void post(Reader reader)
throws IOException,
OryxServingException
IOExceptionOryxServingException@POST
@Path(value="{datum}")
public void post(@PathParam(value="datum")
String datum)
throws OryxServingException
OryxServingException@POST
@Consumes(value="multipart/form-data")
public void post(@Context
javax.servlet.http.HttpServletRequest request)
throws IOException,
OryxServingException
IOExceptionOryxServingExceptionCopyright © 2014–2018. All rights reserved.