Class MapDataType

    • Constructor Detail

      • MapDataType

        public MapDataType​(DataType keyType,
                           DataType valueType,
                           int id)
    • Method Detail

      • createByReflection

        protected FieldValue createByReflection​(Object arg)
        Description copied from class: DataType
        Creates a field value by reflection
        Overrides:
        createByReflection in class DataType
        Parameters:
        arg - the value of the newly created field value
        Returns:
        a fully constructed value
      • getKeyType

        public DataType getKeyType()
      • getValueType

        public DataType getValueType()
      • setKeyType

        @Deprecated(forRemoval=true,
                    since="7")
        public void setKeyType​(DataType keyType)
        Deprecated, for removal: This API element is subject to removal in a future version.
        // TODO Vespa 8 remove
        WARNING! Do not use! Only to be used by config system! Sets the key type of this MapDataType.
      • setValueType

        @Deprecated(forRemoval=true,
                    since="7")
        public void setValueType​(DataType valueType)
        Deprecated, for removal: This API element is subject to removal in a future version.
        // TODO Vespa 8 remove
        WARNING! Do not use! Only to be used by config system! Sets the value type of this MapDataType.
      • buildFieldPath

        public FieldPath buildFieldPath​(String remainFieldName)
        Description copied from class: DataType
        Creates a field path from the given field path string.
        Overrides:
        buildFieldPath in class DataType
        Parameters:
        remainFieldName - a string containing the field path
        Returns:
        Returns a valid field path, parsed from the string
      • isMultivalue

        public boolean isMultivalue()
        Description copied from class: DataType
        Returns whether this is a multivalue type, i.e either a CollectionDataType or a MapDataType
        Overrides:
        isMultivalue in class DataType