Class DocumentFieldNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • DocumentFieldNode

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

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

      • getDocumentFieldName

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

        public DocumentFieldNode setDocumentFieldName​(java.lang.String fieldName)
        Sets the name of the field whose value to retrieve.
        Parameters:
        fieldName - The field name to set.
        Returns:
        This, to allow chaining.
      • 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
      • visitMembers

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