|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.JsonSimple
com.googlecode.fascinator.common.solr.SolrDoc
public class SolrDoc
An extension of the JsonSimple class specifically to address Solr result documents and shortcut common access.
| Constructor Summary | |
|---|---|
SolrDoc(JsonObject newJsonObject)
Wrap a JsonObject in this class |
|
| Method Summary | |
|---|---|
String |
get(String field)
Gets the String value of the specified field. |
String |
getFirst(String field)
Gets the first String value of the specified field. |
List<String> |
getList(String field)
Gets the list of String values of the specified field. |
| Methods inherited from class com.googlecode.fascinator.common.JsonSimple |
|---|
fromJavaMap, getArray, getBoolean, getInteger, getJsonObject, getJsonSimpleList, getJsonSimpleMap, getObject, getPath, getString, getStringList, getStringList, getStringList, search, setPropertySubstitution, toJavaList, toJavaMap, toString, toString, writeArray, writeObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SolrDoc(JsonObject newJsonObject)
newJsonObject - : The JsonObject to wrap| Method Detail |
|---|
public String get(String field)
field - : The field name to query
public String getFirst(String field)
field - : The field name to query
public List<String> getList(String field)
field - : The field name to query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||