Class InterpolatedLookupNode

All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
InterpolatedDocumentFieldLookupNode

public class InterpolatedLookupNode extends UnaryFunctionNode
This function is an instruction to retrieve the value of a named attribute.
Author:
arnej27959
See Also:
  • Field Details

    • classId

      public static final int classId
  • Constructor Details

    • InterpolatedLookupNode

      public InterpolatedLookupNode()
      Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set.
    • InterpolatedLookupNode

      public InterpolatedLookupNode(String attribute, ExpressionNode arg)
      Constructs an instance of this class with given attribute name and lookup argument.
      Parameters:
      attribute - The attribute to retrieve.
      arg - Expression evaluating to the lookup argument.
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Returns the name of the attribute whose value we do lookup in.
      Returns:
      The attribute name.
    • setAttributeName

      public InterpolatedLookupNode setAttributeName(String attribute)
      Sets the name of the attribute whose value we do lookup in.
      Parameters:
      attribute - The attribute to retrieve.
      Returns:
      This, to allow chaining.
    • onGetClassId

      protected int onGetClassId()
      Overrides:
      onGetClassId in class UnaryFunctionNode
    • onSerialize

      protected void onSerialize(com.yahoo.vespa.objects.Serializer buf)
      Overrides:
      onSerialize in class MultiArgFunctionNode
    • onDeserialize

      protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
      Overrides:
      onDeserialize in class MultiArgFunctionNode
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MultiArgFunctionNode
    • equalsUnaryFunction

      protected boolean equalsUnaryFunction(UnaryFunctionNode obj)
      Specified by:
      equalsUnaryFunction in class UnaryFunctionNode
    • visitMembers

      public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
      Overrides:
      visitMembers in class MultiArgFunctionNode
    • visitSuperMembers

      protected void visitSuperMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)