Class ResponseDocument
- java.lang.Object
-
- com.lucidworks.apollo.solr.response.ResponseDocument
-
- All Implemented Interfaces:
java.io.Serializable
public class ResponseDocument extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResponseDocument(java.util.Map<java.lang.String,java.lang.Object> fields, long absolutePosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsField(java.lang.String fieldName)
boolean
equals(java.lang.Object obj)
long
getAbsolutePosition()
java.util.LinkedHashMap<java.lang.String,java.lang.Double>
getFeatures()
Get [features] pseudo-field as aLinkedHashMap
Updating the returned object does not actually update the response.java.lang.Object
getField(java.lang.String fieldName)
java.lang.Object
getFieldOrDefault(java.lang.String fieldName, java.lang.Object defaultValue)
java.util.Map<java.lang.String,java.lang.Object>
getFieldsAsMap()
int
hashCode()
java.lang.Object
putField(java.lang.String fieldName, java.lang.Object fieldValue)
java.lang.Object
removeField(java.lang.String key)
void
setFeatures(java.util.LinkedHashMap<java.lang.String,java.lang.Double> features)
Update [features] pseudo-fieldint
size()
-
-
-
Method Detail
-
getAbsolutePosition
public long getAbsolutePosition()
-
size
public int size()
-
containsField
public boolean containsField(java.lang.String fieldName)
-
getField
public java.lang.Object getField(java.lang.String fieldName)
-
getFieldOrDefault
public java.lang.Object getFieldOrDefault(java.lang.String fieldName, java.lang.Object defaultValue)
-
putField
public java.lang.Object putField(java.lang.String fieldName, java.lang.Object fieldValue)
-
removeField
public java.lang.Object removeField(java.lang.String key)
-
getFieldsAsMap
public java.util.Map<java.lang.String,java.lang.Object> getFieldsAsMap()
-
getFeatures
public java.util.LinkedHashMap<java.lang.String,java.lang.Double> getFeatures()
Get [features] pseudo-field as aLinkedHashMap
Updating the returned object does not actually update the response. To update the response, usesetFeatures(LinkedHashMap)
- Returns:
-
setFeatures
public void setFeatures(java.util.LinkedHashMap<java.lang.String,java.lang.Double> features)
Update [features] pseudo-field- Parameters:
features
-
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-