Class NumericResultNode

    • Field Summary

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void divide​(ResultNode rhs)
      In-place division of this result with another.
      abstract java.lang.Object getNumber()
      Return a java numeric, either Double or Long, depending on the underlying container.
      java.lang.Object getValue()
      Return a java native, either String, Double or Long, depending on the underlying container.
      abstract void modulo​(ResultNode rhs)
      In-place modulo of this result with another.
      abstract void multiply​(ResultNode rhs)
      In-place multiplication of this result with another.
      protected int onGetClassId()  
      • 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

      • NumericResultNode

        public NumericResultNode()
    • Method Detail

      • multiply

        public abstract void multiply​(ResultNode rhs)
        In-place multiplication of this result with another.
        Parameters:
        rhs - The result to multiply with this.
      • divide

        public abstract void divide​(ResultNode rhs)
        In-place division of this result with another.
        Parameters:
        rhs - The result to divide this by.
      • modulo

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

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

        public java.lang.Object getValue()
        Description copied from class: SingleResultNode
        Return a java native, either String, Double or Long, depending on the underlying container.
        Specified by:
        getValue in class SingleResultNode
        Returns:
        The underlying numeric value.