Class SingleResultNode

    • Field Summary

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void add​(ResultNode rhs)
      In-place addition of this result with another.
      abstract java.lang.Object getValue()
      Return a java native, either String, Double or Long, depending on the underlying container.
      abstract void max​(ResultNode rhs)
      Swaps the numerical value of this node with the larger of this and the other.
      abstract void min​(ResultNode rhs)
      Swaps the numerical value of this node with the smaller of this and the other.
      • Methods inherited from class com.yahoo.vespa.objects.Identifiable

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

        select, select, selectMembers
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • SingleResultNode

        public SingleResultNode()
    • Method Detail

      • add

        public abstract void add​(ResultNode rhs)
        In-place addition of this result with another.
        Parameters:
        rhs - The result to add to this.
      • min

        public abstract void min​(ResultNode rhs)
        Swaps the numerical value of this node with the smaller of this and the other.
        Parameters:
        rhs - The other result to evaluate.
      • max

        public abstract void max​(ResultNode rhs)
        Swaps the numerical value of this node with the larger of this and the other.
        Parameters:
        rhs - The other result to evaluate.
      • getValue

        public abstract java.lang.Object getValue()
        Return a java native, either String, Double or Long, depending on the underlying container.
        Returns:
        The underlying numeric value.