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
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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static AttributeMapLookupNode
static AttributeMapLookupNode
fromKeySourceAttribute
(String attributeExpression, String keyAttribute, String valueAttribute, String keySourceAttribute) int
hashCode()
protected void
onDeserialize
(com.yahoo.vespa.objects.Deserializer buf) protected int
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
Methods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString
Methods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Field Details
-
classId
public static final int classId
-
-
Constructor Details
-
AttributeMapLookupNode
public AttributeMapLookupNode()
-
-
Method Details
-
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
- Overrides:
equalsFunction
in classAttributeNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembers
in classAttributeNode
-