public class IndexAndPayloadComposite extends Object
| Constructor and Description |
|---|
IndexAndPayloadComposite(SolrDoc indexedData,
JsonSimple payloadData)
Builds an instance using the indexed data, accessing the storage for the
appropriate payload specified in
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
SolrDoc |
getIndexedData() |
JsonObject |
getJsonObject() |
List<String> |
getList(String field)
Gets the list of String values of the specified field.
|
Object |
getPath(String field)
Retrieves the object from the composite, prioritizes payload then
indexed.
|
JsonSimple |
getPayloadData() |
void |
setPayloadData(JsonSimple payloadData) |
public IndexAndPayloadComposite(SolrDoc indexedData, JsonSimple payloadData)
indexedData - services - public Object getPath(String field)
field - public String get(String field)
field - : The field name to querypublic String getFirst(String field)
field - : The field name to querypublic List<String> getList(String field)
field - : The field name to querypublic JsonObject getJsonObject()
public SolrDoc getIndexedData()
public JsonSimple getPayloadData()
public void setPayloadData(JsonSimple payloadData)
Copyright © 2009-2015. All Rights Reserved.