public class RetrieveCountsHandler extends AbstractHttpServiceHandler
| Constructor and Description |
|---|
RetrieveCountsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
getAssoc(HttpServiceRequest request,
HttpServiceResponder responder,
String word1,
String word2)
Returns the count of associations for a specific word pair.
|
void |
getCount(HttpServiceRequest request,
HttpServiceResponder responder,
String word,
Integer limit)
Returns the count for a specific word and its word associations, up to the specified limit or
a pre-set limit of ten if not specified.
|
void |
getStats(HttpServiceRequest request,
HttpServiceResponder responder)
Returns total number of words, the number of unique words, and the average word length.
|
configure, configure, destroy, getConfigurer, getContext, initialize, setProperties, useDatasets, useDatasetspublic void getStats(HttpServiceRequest request, HttpServiceResponder responder)
public void getCount(HttpServiceRequest request, HttpServiceResponder responder, String word, Integer limit)
public void getAssoc(HttpServiceRequest request, HttpServiceResponder responder, String word1, String word2)
Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.