Class SingleResultNode

java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ResultNode
com.yahoo.searchlib.expression.SingleResultNode
All Implemented Interfaces:
Cloneable, Comparable<ResultNode>
Direct Known Subclasses:
NumericResultNode, RawResultNode, StringResultNode

public abstract class SingleResultNode extends ResultNode
Author:
baldersheim
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    In-place addition of this result with another.
    abstract Object
    Return a java native, either String, Double or Long, depending on the underlying container.
    abstract void
    Swaps the numerical value of this node with the larger of this and the other.
    abstract void
    Swaps the numerical value of this node with the smaller of this and the other.

    Methods inherited from class com.yahoo.searchlib.expression.ResultNode

    compareTo, equals, getFloat, getInteger, getRaw, getString, negate, onCmp, onGetClassId, set

    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, 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 Details

    • classId

      public static final int classId
  • Constructor Details

    • SingleResultNode

      public SingleResultNode()
  • Method Details

    • 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 Object getValue()
      Return a java native, either String, Double or Long, depending on the underlying container.
      Returns:
      The underlying numeric value.