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 AttributeMapLookupValue
static AttributeMapLookupValue
fromKeySourceAttribute
(String prefix, String keySourceAttribute, String suffix) getKey()
boolean
Methods inherited from class com.yahoo.search.grouping.request.AttributeValue
getAttributeName
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 Details
-
fromKey
-
fromKeySourceAttribute
public static AttributeMapLookupValue fromKeySourceAttribute(String prefix, String keySourceAttribute, String suffix) -
copy
Description copied from class:GroupingExpression
Returns a deep copy of this- Overrides:
copy
in classAttributeValue
-
getKeyAttribute
-
getValueAttribute
-
getKey
-
hasKeySourceAttribute
public boolean hasKeySourceAttribute() -
getKeySourceAttribute
-