Class CollectionDataType

    • Field Detail

      • classId

        public static int classId
    • Constructor Detail

      • CollectionDataType

        protected CollectionDataType​(String name,
                                     int code,
                                     DataType nestedType)
    • Method Detail

      • getNestedType

        public DataType getNestedType()
      • 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
      • setNestedType

        @Deprecated(forRemoval=true,
                    since="7")
        public void setNestedType​(DataType nestedType)
        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 nested type of this CollectionDataType.
      • getPrimitiveType

        public PrimitiveDataType getPrimitiveType()
        Description copied from class: DataType
        Returns the primitive datatype associated with this datatype, i.e. the type itself if this is a PrimitiveDataType, the nested type if this is a CollectionDataType or null for all other cases
        Overrides:
        getPrimitiveType in class DataType
        Returns:
        primitive data type, or null
      • visitMembers

        public void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)
        Overrides:
        visitMembers in class DataType
      • 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