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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic AttributeMapLookupNodestatic AttributeMapLookupNodefromKeySourceAttribute(String attributeExpression, String keyAttribute, String valueAttribute, String keySourceAttribute) inthashCode()protected voidonDeserialize(com.yahoo.vespa.objects.Deserializer buf) protected intprotected voidonSerialize(com.yahoo.vespa.objects.Serializer buf) voidvisitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) Methods inherited from class com.yahoo.searchlib.expression.AttributeNode
getAttributeName, setAttributeNameMethods inherited from class com.yahoo.searchlib.expression.FunctionNode
clone, equalsExpression, getResult, setResultMethods inherited from class com.yahoo.searchlib.expression.ExpressionNode
equals, execute, executeIterative, onArgument, onExecute, onPrepare, prepareMethods inherited from class com.yahoo.vespa.objects.Identifiable
create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getRawUtf8Bytes, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toStringMethods 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:
onGetClassIdin classAttributeNode
-
onSerialize
protected void onSerialize(com.yahoo.vespa.objects.Serializer buf) - Overrides:
onSerializein classAttributeNode
-
onDeserialize
protected void onDeserialize(com.yahoo.vespa.objects.Deserializer buf) - Overrides:
onDeserializein classAttributeNode
-
hashCode
public int hashCode()- Overrides:
hashCodein classAttributeNode
-
equalsFunction
- Overrides:
equalsFunctionin classAttributeNode
-
visitMembers
public void visitMembers(com.yahoo.vespa.objects.ObjectVisitor visitor) - Overrides:
visitMembersin classAttributeNode
-