|
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.Category
An instance of Category
represents a value of a categorical attribute, for example, the value "blue" of attribute "color", or number "5" of the attribute "rating". A category may have a display name to be used when ODM displays the category in output results.
Field Summary | |
static int |
MAX_CAT_NAME_LENGTH |
static int |
MAX_CAT_VALUE_LENGTH |
Constructor Summary | |
Category(boolean value) Creates a boolean Category instance with display name set to the string representation of the boolean, true or false . | |
Category(float value) Creates a float Category instance with display name set to the string representation of the float. | |
Category(int value) Creates an int Category instance with display name set to the string representation of the int. | |
Category(java.lang.Object value) Creates an object Category instance with display name set to the string representation of the value. | |
Category(java.lang.String value) Creates a string Category instance with display name set to the value. | |
Category(java.lang.String value, DataType type) Creates a Category instance accepting the value as a string with the data type is used for the display name. | |
Category(java.lang.String displayName, float value) Creates a float Category instance with the provided display name. | |
Category(java.lang.String displayName, int value) Creates an int Category instance with the provided display name. | |
Category(java.lang.String displayName, java.lang.String value) Creates a string Category instance with the provided display name. | |
Category(java.lang.String displayName, java.lang.String value, DataType dataType) Creates a Category instance with the provided display name value and data type. |
Method Summary | |
boolean |
equals(Category cat) Returns true if both categories have the same display name and value. |
DataType |
getDataType() Returns the data type of the Category . |
java.lang.String |
getDisplayName() Returns the display name of the Category . |
java.lang.String |
getValue() Returns the value of the Category . |
java.lang.String |
toString() Returns a formatted string representation of the Category instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MAX_CAT_NAME_LENGTH
public static final int MAX_CAT_VALUE_LENGTH
Constructor Detail |
public Category(java.lang.String value, DataType type) throws InvalidArgumentException, ODMException
Category
instance accepting the value as a string with the data type is used for the display name.InvalidArgumentException
-
InvalidArgumentException
ODMException
public Category(int value)
Category
instance with display name set to the string representation of the int.public Category(float value)
Category
instance with display name set to the string representation of the float.public Category(boolean value)
Category
instance with display name set to the string representation of the boolean, true
or false
.public Category(java.lang.String value) throws InvalidArgumentException, ODMException
Category
instance with display name set to the value.InvalidArgumentException
- when value is nullODMException
- when value length > 4000 charactersInvalidArgumentException
ODMException
public Category(java.lang.Object value) throws InvalidArgumentException, ODMException
Category
instance with display name set to the string representation of the value.InvalidArgumentException
- when value is nullODMException
- when value is not of type Integer, Float, String or BooleanInvalidArgumentException
ODMException
public Category(java.lang.String displayName, int value) throws InvalidArgumentException, ODMException
Category
instance with the provided display name.InvalidArgumentException
- when displayName is nullODMException
- when displayName length > 4000 characters.InvalidArgumentException
ODMException
public Category(java.lang.String displayName, float value) throws InvalidArgumentException, ODMException
Category
instance with the provided display name.InvalidArgumentException
- when displayName is nullODMException
- when displayName length > 4000 characters.InvalidArgumentException
ODMException
public Category(java.lang.String displayName, java.lang.String value) throws InvalidArgumentException, ODMException
Category
instance with the provided display name.InvalidArgumentException
-
ODMException
-
InvalidArgumentException
ODMException
public Category(java.lang.String displayName, java.lang.String value, DataType dataType) throws InvalidArgumentException, ODMException
Category
instance with the provided display name value and data type.InvalidArgumentException
-
ODMException
- when value length length > 4000 charactersInvalidArgumentException
ODMException
Method Detail |
public java.lang.String getValue()
Category
.Category
valuepublic java.lang.String getDisplayName()
Category
.Category
display namepublic DataType getDataType()
Category
.Category
data typepublic java.lang.String toString()
Category
instance.toString
in class java.lang.Object
public boolean equals(Category cat)
true
if both categories are the same
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |