|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.dmt.odm.MiningObject
|
+--oracle.dmt.odm.CategorySet
An instance of CategorySet represents a group of categories associated with a single mining attribute.
| Constructor Summary | |
CategorySet(java.lang.String name, DataType type)Creates a CategorySet instance accepting the name and the datatype. | |
| Method Summary | |
int |
addCategory(java.lang.Object categoryValue)Adds a Category to the CategorySet. |
int |
addCategory(java.lang.String name, java.lang.Object categoryValue)Adds a Category to the CategorySet. |
Category[] |
getCategories()Gets the list of categories from the CategorySet. |
Category |
getCategory(int index)Gets a single category ( at the specified index) from the CategorySet. |
int |
getCategoryIndex(java.lang.Object value)Returns the index for the category containing the incoming value |
DataType |
getDataType()Returns the data type for the current CategorySet |
java.lang.String |
getName()Returns the name of the curret CategorySet |
void |
removeCategory(int index)Removes a category from the CategorySet. |
void |
setCategoryArray(Category[] listOfCategories)Sets the list of categories |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CategorySet(java.lang.String name,
DataType type)
throws InvalidArgumentException,
ODMException
CategorySet instance accepting the name and the datatype. Categories must be added separately.ODMException - if name more than 30 characters.InvalidArgumentException - if name is null.| Method Detail |
public int addCategory(java.lang.Object categoryValue)
throws InvalidArgumentException,
ODMException
InvalidArgumentException - if the value is not of type Integer, Float, String or Boolean.ODMException - if the value is longer than 4000 characters.
public int addCategory(java.lang.String name,
java.lang.Object categoryValue)
throws InvalidArgumentException,
ODMException
InvalidArgumentException - if the value is not of type Integer, Float, String or BooleanODMException
public void removeCategory(int index)
throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException - if the index is less 0 or beyond the max number of categories in the set
public Category getCategory(int index)
throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException - if the index is 0 or beyond the max number of categories in the setpublic Category[] getCategories()
InvalidArgumentException - if the index is 0 or beyond the max number of categories in the set
public int getCategoryIndex(java.lang.Object value)
throws ODMException
ODMException - if the category value is longer than 4000 characterspublic java.lang.String getName()
public DataType getDataType()
public void setCategoryArray(Category[] listOfCategories)
throws InvalidArgumentException,
ODMException
InvalidArgumentException - if the array is null or empty.ODMException - if the category value is longer than 4000 characters.
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||