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 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(String image, String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getImage()
String
getLabel()
Returns the label assigned to this grouping expression.GroupingNode
setLabel(String str)
Assigns a label to this grouping expression.String
toString()
-
-
-
Method Detail
-
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.
-
-