Class NullResultNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int classId  
    • Constructor Summary

      Constructors 
      Constructor Description
      NullResultNode()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getFloat()
      Returns the float representation of this result.
      long getInteger()
      Returns the integer representation of this result.
      byte[] getRaw()
      Returns the raw byte array representation of this result.
      String getString()
      Returns the string representation of this result.
      protected int onCmp​(ResultNode rhs)
      This method must be implemented by all subclasses of this to allow ordering of results.
      protected int onGetClassId()  
      void set​(ResultNode rhs)
      This method must be implemented by all subclasses of this to allow new results to be calculated.
      void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)  
      • Methods inherited from class com.yahoo.vespa.objects.Identifiable

        clone, create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, hashCode, onDeserialize, onSerialize, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString
      • Methods inherited from class com.yahoo.vespa.objects.Selectable

        select, select, selectMembers
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • NullResultNode

        public NullResultNode()
    • Method Detail

      • getInteger

        public long getInteger()
        Description copied from class: ResultNode
        Returns the integer representation of this result.
        Specified by:
        getInteger in class ResultNode
        Returns:
        The value of this.
      • getFloat

        public double getFloat()
        Description copied from class: ResultNode
        Returns the float representation of this result.
        Specified by:
        getFloat in class ResultNode
        Returns:
        The value of this.
      • getString

        public String getString()
        Description copied from class: ResultNode
        Returns the string representation of this result.
        Specified by:
        getString in class ResultNode
        Returns:
        The value of this.
      • getRaw

        public byte[] getRaw()
        Description copied from class: ResultNode
        Returns the raw byte array representation of this result.
        Specified by:
        getRaw in class ResultNode
        Returns:
        The value of this.
      • onCmp

        protected int onCmp​(ResultNode rhs)
        Description copied from class: ResultNode
        This method must be implemented by all subclasses of this to allow ordering of results. This method is used by the Cloneable implementation.
        Specified by:
        onCmp in class ResultNode
        Parameters:
        rhs - The other node to compare with.
        Returns:
        Comparable result.
      • visitMembers

        public void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)
        Overrides:
        visitMembers in class com.yahoo.vespa.objects.Identifiable
      • set

        public void set​(ResultNode rhs)
        Description copied from class: ResultNode
        This method must be implemented by all subclasses of this to allow new results to be calculated.
        Specified by:
        set in class ResultNode
        Parameters:
        rhs - The node to get the result from.