Class AttributeFunction
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.AttributeFunction
This class represents a document attribute function in a
GroupingExpression. It evaluates to the value of the
named attribute in the input Hit.- Author:
- Simon Thoresen Hult, bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeFunction(String attributeName) Constructs a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of thisReturns the name of the attribute to retrieve from the input hit.Methods inherited from class com.yahoo.search.grouping.request.DocumentValue
resolveLevelMethods inherited from class com.yahoo.search.grouping.request.GroupingExpression
asImage, asString, getLevel, getLevelOrNull, setLabel, visitMethods inherited from class com.yahoo.search.grouping.request.GroupingNode
getImage, getLabel, toString
-
Constructor Details
-
AttributeFunction
Constructs a new instance of this class.- Parameters:
attributeName- the attribute name to assign to this.
-
-
Method Details
-
copy
Description copied from class:GroupingExpressionReturns a deep copy of this- Specified by:
copyin classGroupingExpression
-
getAttributeName
Returns the name of the attribute to retrieve from the input hit.- Returns:
- the attribute name.
-