Class GroupingNode
- java.lang.Object
-
- com.yahoo.search.grouping.request.GroupingNode
-
- Direct Known Subclasses:
GroupingExpression
,GroupingOperation
public abstract class GroupingNode extends java.lang.Object
This is the abstract super class of bothGroupingOperation
andGroupingExpression
. All nodes can be assigned aString
label which in turn can be used to identify the corresponding result objects.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GroupingNode(java.lang.String image, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getImage()
java.lang.String
getLabel()
Returns the label assigned to this grouping expression.GroupingNode
setLabel(java.lang.String str)
Assigns a label to this grouping expression.java.lang.String
toString()
-
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Returns the label assigned to this grouping expression.- Returns:
- The label string.
-
getImage
protected java.lang.String getImage()
-
setLabel
public GroupingNode setLabel(java.lang.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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-