Package com.yahoo.search.grouping.result
Class GroupId
- java.lang.Object
-
- com.yahoo.search.grouping.result.GroupId
-
- Direct Known Subclasses:
BucketGroupId
,NullId
,RootId
,ValueGroupId
public abstract class GroupId extends java.lang.Object
This abstract class represents the id of a single group in the grouping result model. A subclass corresponding to the evaluation result of generatingGroupingExpression
is contained in allGroup
objects. It is used byGroupingRequest
to identify its root result group, and by all client code for identifying groups.The
toString()
method of this class generates a URI-compatible string on the form "group:<typeName>:<subclassSpecific>".- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GroupId(java.lang.String type, java.lang.Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTypeName()
Returns the type name of this group id.java.lang.String
toString()
-
-
-
Method Detail
-
getTypeName
public java.lang.String getTypeName()
Returns the type name of this group id. This is the second part of thetoString()
value of this.- Returns:
- The type name.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-