@Path(value="/distinct") public final class Distinct extends OryxResource
/distinct
. Returns all distinct words and their count.
Responds to a GET request to /distinct/[word]
as well to get the count for one word. If the
word's count is unknown, returns an HTTP Response.Status#BAD_REQUEST
error response.INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY
Constructor and Description |
---|
Distinct() |
Modifier and Type | Method and Description |
---|---|
Map<String,Integer> |
get() |
int |
get(String word) |
getInputProducer, getServingModelManager, init
@GET @Produces(value={"text/plain","application/json"}) @Path(value="{word}") public int get(@PathParam(value="word") String word) throws OryxServingException
OryxServingException
Copyright © 2014–2018. All rights reserved.