Class AttributeMapLookupValue
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
com.yahoo.search.grouping.request.AttributeMapLookupValue
This class represents a lookup in a map attribute in a
GroupingExpression.
It evaluates to the value found using the given key for the lookup in that attribute.
The key is either specified explicitly or found via a key source attribute.
Two underlying attributes are used to represent the map attribute (the key and value attributes).- Author:
- geirst
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a deep copy of thisstatic AttributeMapLookupValuestatic AttributeMapLookupValuefromKeySourceAttribute(String prefix, String keySourceAttribute, String suffix) getKey()booleanMethods inherited from class com.yahoo.search.grouping.request.AttributeValue
getAttributeNameMethods 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
-
Method Details
-
fromKey
-
fromKeySourceAttribute
public static AttributeMapLookupValue fromKeySourceAttribute(String prefix, String keySourceAttribute, String suffix) -
copy
Description copied from class:GroupingExpressionReturns a deep copy of this- Overrides:
copyin classAttributeValue
-
getKeyAttribute
-
getValueAttribute
-
getKey
-
hasKeySourceAttribute
public boolean hasKeySourceAttribute() -
getKeySourceAttribute
-