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
-
public class AttributeMapLookupValue extends AttributeValue
This class represents a lookup in a map attribute in aGroupingExpression
. 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMapLookupValue
copy()
Returns a deep copy of thisstatic AttributeMapLookupValue
fromKey(java.lang.String prefix, java.lang.String key, java.lang.String suffix)
static AttributeMapLookupValue
fromKeySourceAttribute(java.lang.String prefix, java.lang.String keySourceAttribute, java.lang.String suffix)
java.lang.String
getKey()
java.lang.String
getKeyAttribute()
java.lang.String
getKeySourceAttribute()
java.lang.String
getValueAttribute()
boolean
hasKeySourceAttribute()
-
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 Detail
-
fromKey
public static AttributeMapLookupValue fromKey(java.lang.String prefix, java.lang.String key, java.lang.String suffix)
-
fromKeySourceAttribute
public static AttributeMapLookupValue fromKeySourceAttribute(java.lang.String prefix, java.lang.String keySourceAttribute, java.lang.String suffix)
-
copy
public AttributeMapLookupValue copy()
Description copied from class:GroupingExpression
Returns a deep copy of this- Overrides:
copy
in classAttributeValue
-
getKeyAttribute
public java.lang.String getKeyAttribute()
-
getValueAttribute
public java.lang.String getValueAttribute()
-
getKey
public java.lang.String getKey()
-
hasKeySourceAttribute
public boolean hasKeySourceAttribute()
-
getKeySourceAttribute
public java.lang.String getKeySourceAttribute()
-
-