Class DocumentFieldNode

java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.objects.Identifiable
All Implemented Interfaces:
Serializable, Cloneable

public class DocumentFieldNode extends DocumentAccessorNode
The node is a request to retrieve the content of a document field.
Author:
baldersheim, Simon Thoresen Hult
See Also:
  • Field Details

    • classId

      public static final int classId
  • Constructor Details

    • DocumentFieldNode

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

      public DocumentFieldNode(String fieldName)
      Constructs an instance of this class with given field name.
      Parameters:
      fieldName - The field whose value to retrieve.
  • Method Details

    • getDocumentFieldName

      public String getDocumentFieldName()
      Returns the name of the field whose value to retrieve.
      Returns:
      The field name.
    • setDocumentFieldName

      public DocumentFieldNode setDocumentFieldName(String fieldName)
      Sets the name of the field whose value to retrieve.
      Parameters:
      fieldName - The field name to set.
      Returns:
      This, to allow chaining.
    • getResult

      public ResultNode getResult()
      Description copied from class: ExpressionNode
      Get the result of this expression.
      Specified by:
      getResult in class ExpressionNode
      Returns:
      the result as a ResultNode.
    • onGetClassId

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class com.yahoo.vespa.objects.Identifiable
    • equalsExpression

      protected boolean equalsExpression(ExpressionNode obj)
      Specified by:
      equalsExpression in class ExpressionNode
    • clone

      public DocumentFieldNode clone()
      Overrides:
      clone in class ExpressionNode
    • visitMembers

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