Class ResultNodeVector

java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
com.yahoo.searchlib.expression.ResultNode
com.yahoo.searchlib.expression.ResultNodeVector
All Implemented Interfaces:
Cloneable, Comparable<ResultNode>
Direct Known Subclasses:
BoolResultNodeVector, FloatBucketResultNodeVector, FloatResultNodeVector, Int16ResultNodeVector, Int32ResultNodeVector, Int8ResultNodeVector, IntegerBucketResultNodeVector, IntegerResultNodeVector, RawBucketResultNodeVector, RawResultNodeVector, StringBucketResultNodeVector, StringResultNodeVector

public abstract class ResultNodeVector extends ResultNode
This result holds nothing.
Author:
baldersheim, Simon Thoresen Hult
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    double
    Returns the float representation of this result.
    long
    Returns the integer representation of this result.
    byte[]
    Returns the raw byte array representation of this result.
    Returns the string representation of this result.
    protected int
     
    void
    This method must be implemented by all subclasses of this to allow new results to be calculated.
    abstract int
     

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

    compareTo, equals, negate, onCmp

    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

    • ResultNodeVector

      public ResultNodeVector()
  • Method Details

    • onGetClassId

      protected int onGetClassId()
      Overrides:
      onGetClassId in class ResultNode
    • 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.
    • 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.
    • add

      public abstract ResultNodeVector add(ResultNode r)
    • size

      public abstract int size()