|
||||||||||
| 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 | |
|---|---|
java.lang.String |
get(java.lang.String field)
Gets the String value of the specified field. |
java.lang.String |
getFirst(java.lang.String field)
Gets the first String value of the specified field. |
java.util.List<java.lang.String> |
getList(java.lang.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, getJsonArray, 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 java.lang.String get(java.lang.String field)
field - : The field name to query
public java.lang.String getFirst(java.lang.String field)
field - : The field name to query
public java.util.List<java.lang.String> getList(java.lang.String field)
field - : The field name to query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||