Class 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 a LinkedHashMap 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-field
      int size()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseDocument

        public ResponseDocument​(java.util.Map<java.lang.String,​java.lang.Object> fields,
                                long absolutePosition)
    • 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 a LinkedHashMap Updating the returned object does not actually update the response. To update the response, use setFeatures(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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object