Package com.yahoo.searchlib.expression
Class AttributeMapLookupNode
- java.lang.Object
-
- com.yahoo.vespa.objects.Selectable
-
- com.yahoo.vespa.objects.Identifiable
-
- com.yahoo.searchlib.expression.ExpressionNode
-
- com.yahoo.searchlib.expression.FunctionNode
-
- com.yahoo.searchlib.expression.AttributeNode
-
- com.yahoo.searchlib.expression.AttributeMapLookupNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AttributeMapLookupNode extends AttributeNode
This function is an instruction to do a lookup in a map attribute, returning the value. 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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
classId
-
Constructor Summary
Constructors Constructor Description AttributeMapLookupNode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
equalsFunction(FunctionNode obj)
static AttributeMapLookupNode
fromKey(String attributeExpression, String keyAttribute, String valueAttribute, String key)
static AttributeMapLookupNode
fromKeySourceAttribute(String attributeExpression, String keyAttribute, String valueAttribute, String keySourceAttribute)
int
hashCode()
protected void
onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
protected int
onGetClassId()
protected void
onSerialize(com.yahoo.vespa.objects.Serializer buf)
void
visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
-
Methods inherited from class com.yahoo.searchlib.expression.AttributeNode
getAttributeName, setAttributeName
-
Methods inherited from class com.yahoo.searchlib.expression.FunctionNode
clone, equalsExpression, getResult, setResult
-
Methods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, onExecute, onPrepare, prepare
-
-
-
-
Method Detail
-
fromKey
public static AttributeMapLookupNode fromKey(String attributeExpression, String keyAttribute, String valueAttribute, String key)
-
fromKeySourceAttribute
public static AttributeMapLookupNode fromKeySourceAttribute(String attributeExpression, String keyAttribute, String valueAttribute, String keySourceAttribute)
-
onGetClassId
protected int onGetClassId()
- Overrides:
onGetClassId
in classAttributeNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf)
- Overrides:
onSerialize
in classAttributeNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf)
- Overrides:
onDeserialize
in classAttributeNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAttributeNode
-
equalsFunction
protected boolean equalsFunction(FunctionNode obj)
- Overrides:
equalsFunction
in classAttributeNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor)
- Overrides:
visitMembers
in classAttributeNode
-
-