|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.solr.SolrFacet
public class SolrFacet
An extension of the JsonSimple class specifically to address Solr result facets and shortcut common access.
| Constructor Summary | |
|---|---|
SolrFacet(String field,
org.json.simple.JSONArray data)
Wrap a JSONArray in this class |
|
| Method Summary | |
|---|---|
Integer |
count(String value)
Get the count against a given facet value for this field. |
String |
field()
Get the name of the facet field |
Map<String,Integer> |
values()
Get a Map containing facet values and counts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SolrFacet(String field,
org.json.simple.JSONArray data)
newJsonObject - : The JSONArray to wrap| Method Detail |
|---|
public Integer count(String value)
public String field()
public Map<String,Integer> values()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||