Class AttributeValue
- java.lang.Object
-
- com.yahoo.search.grouping.request.GroupingNode
-
- com.yahoo.search.grouping.request.GroupingExpression
-
- com.yahoo.search.grouping.request.DocumentValue
-
- com.yahoo.search.grouping.request.AttributeValue
-
- Direct Known Subclasses:
AttributeMapLookupValue
public class AttributeValue extends DocumentValue
This class represents a document attribute value in aGroupingExpression
. It evaluates to the value of the named attribute in the inputHit
.- Author:
- Simon Thoresen Hult, bratseth
-
-
Constructor Summary
Constructors Constructor Description AttributeValue(java.lang.String attributeName)
Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeValue
copy()
Returns a deep copy of thisjava.lang.String
getAttributeName()
Returns the name of the attribute to retrieve from the input hit.-
Methods inherited from class com.yahoo.search.grouping.request.DocumentValue
resolveLevel
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, setLabel, visit
-
Methods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
-
-
-
Method Detail
-
copy
public AttributeValue copy()
Description copied from class:GroupingExpression
Returns a deep copy of this- Specified by:
copy
in classGroupingExpression
-
getAttributeName
public java.lang.String getAttributeName()
Returns the name of the attribute to retrieve from the input hit.- Returns:
- the attribute name.
-
-