Class DocumentNode

java.lang.Object
com.yahoo.document.select.rule.DocumentNode
All Implemented Interfaces:
ExpressionNode

public class DocumentNode extends Object implements ExpressionNode
A document node which returns a document: For accessing document field data in AttributeNode, where it should be possible to access fields both by the concrete type ("concreteType.fieldName") and by parent type ("inheritedType.inheritedField").
Author:
Simon Thoresen Hult, bratseth
  • Constructor Details

    • DocumentNode

      public DocumentNode(String type)
  • Method Details

    • getType

      public String getType()
    • setType

      public DocumentNode setType(String type)
    • getBucketSet

      public BucketSet getBucketSet(BucketIdFactory factory)
      Description copied from interface: ExpressionNode
      Returns the set of bucket ids covered by this node.
      Specified by:
      getBucketSet in interface ExpressionNode
      Parameters:
      factory - the factory used by the current application
    • evaluate

      public Object evaluate(Context context)
      Description copied from interface: ExpressionNode
      Evaluate the content of this node based on document object, and return that value.
      Specified by:
      evaluate in interface ExpressionNode
      Parameters:
      context - the document to evaluate over
      Returns:
      the value of this
    • accept

      public void accept(Visitor visitor)
      Description copied from interface: ExpressionNode
      Perform visitation of this node.
      Specified by:
      accept in interface ExpressionNode
      Parameters:
      visitor - the visitor that wishes to visit the node
    • toString

      public String toString()
      Overrides:
      toString in class Object