Class CollectionDataType

    • Field Detail

      • classId

        public static int classId
    • Constructor Detail

      • CollectionDataType

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

      • getNestedType

        public DataType getNestedType()
      • createByReflection

        protected FieldValue createByReflection​(java.lang.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

        public void setNestedType​(DataType nestedType)
        Sets the nested type of this CollectionDataType. WARNING! Do not use! Only to be used by config system!
      • 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