Class AttributeMapLookupNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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 Detail

      • classId

        public static final int classId
    • Constructor Detail

      • AttributeMapLookupNode

        public AttributeMapLookupNode()
    • Method Detail

      • fromKey

        public static AttributeMapLookupNode fromKey​(java.lang.String attributeExpression,
                                                     java.lang.String keyAttribute,
                                                     java.lang.String valueAttribute,
                                                     java.lang.String key)
      • fromKeySourceAttribute

        public static AttributeMapLookupNode fromKeySourceAttribute​(java.lang.String attributeExpression,
                                                                    java.lang.String keyAttribute,
                                                                    java.lang.String valueAttribute,
                                                                    java.lang.String keySourceAttribute)
      • onSerialize

        protected void onSerialize​(com.yahoo.vespa.objects.Serializer buf)
        Overrides:
        onSerialize in class AttributeNode
      • onDeserialize

        protected void onDeserialize​(com.yahoo.vespa.objects.Deserializer buf)
        Overrides:
        onDeserialize in class AttributeNode
      • visitMembers

        public void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)
        Overrides:
        visitMembers in class AttributeNode