Class GroupingNode

java.lang.Object
com.yahoo.search.grouping.request.GroupingNode
Direct Known Subclasses:
GroupingExpression, GroupingOperation

public abstract class GroupingNode extends Object
This is the abstract super class of both GroupingOperation and GroupingExpression. All nodes can be assigned a String label which in turn can be used to identify the corresponding result objects.
Author:
Simon Thoresen Hult
  • Constructor Details

    • GroupingNode

      protected GroupingNode(String image, String label)
  • Method Details

    • getLabel

      public String getLabel()
      Returns the label assigned to this grouping expression.
      Returns:
      The label string.
    • getImage

      protected String getImage()
    • setLabel

      public GroupingNode setLabel(String str)
      Assigns a label to this grouping expression. The label is applied to the results of this expression so that they can be identified by the caller when processing the output.
      Parameters:
      str - The label to assign to this.
      Returns:
      This, to allow chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object