Class InstanceSchema

  • All Implemented Interfaces:
    java.io.Serializable, org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
    Direct Known Subclasses:
    LabeledInstanceSchema

    public class InstanceSchema
    extends java.lang.Object
    implements org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceSchema()  
      InstanceSchema​(java.lang.String relationName, java.util.Collection<org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute> attributeList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(int pos, org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute attribute)  
      void addAttribute​(org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute attribute)  
      boolean equals​(java.lang.Object obj)  
      org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute getAttribute​(int pos)  
      java.util.List<org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute> getAttributeList()  
      org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema getCopy()  
      int getNumAttributes()  
      java.lang.String getRelationName()  
      int hashCode()  
      void removeAttribute​(int columnPos)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InstanceSchema

        public InstanceSchema()
      • InstanceSchema

        public InstanceSchema​(java.lang.String relationName,
                              java.util.Collection<org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute> attributeList)
    • Method Detail

      • getAttributeList

        public java.util.List<org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute> getAttributeList()
        Specified by:
        getAttributeList in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • getAttribute

        public org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute getAttribute​(int pos)
        Specified by:
        getAttribute in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • getNumAttributes

        public int getNumAttributes()
        Specified by:
        getNumAttributes in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • getRelationName

        public java.lang.String getRelationName()
        Specified by:
        getRelationName in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • removeAttribute

        public void removeAttribute​(int columnPos)
        Specified by:
        removeAttribute in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • addAttribute

        public void addAttribute​(int pos,
                                 org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute attribute)
        Specified by:
        addAttribute in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • addAttribute

        public void addAttribute​(org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute attribute)
        Specified by:
        addAttribute in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • getCopy

        public org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema getCopy()
        Specified by:
        getCopy in interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchema
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object