|
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.data.Attribute | +--oracle.dmt.odm.data.AttributeInstance
An instance of AttributeInstance
supports providing named and typed values as input for various functions. This class is currently used in conjunction with RecordInstance
. AttributeInstance
supports the three data types String
, int
, and float
.
Constructor Summary | |
AttributeInstance(java.lang.String attributeName) Constructs an attribute instance with null value. | |
AttributeInstance(java.lang.String attributeName, float value) Constructs a float instance with the specified name and value. | |
AttributeInstance(java.lang.String attributeName, int value) Constructs an integer instance with the specified name and value. | |
AttributeInstance(java.lang.String attributeName, java.lang.String value) Constructs a string instance with the specified name and value. |
Method Summary | |
float |
getFloatValue() If data type is float , return the stored float value. |
int |
getIntValue() If data type is int , return the stored integer value. |
java.lang.String |
getStringValue() If data type is String , return the stored String value; otherwise return null. |
boolean |
isNullValue() Returns true if the value is null. |
Methods inherited from class oracle.dmt.odm.data.Attribute |
equals, getDataType, getName, setDataType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AttributeInstance(java.lang.String attributeName, int value) throws InvalidArgumentException, ODMException
attributeName
- attribute namevalue
- int type attribute valueInvalidArgumentException
- is thrownInvalidArgumentException
ODMException
public AttributeInstance(java.lang.String attributeName, float value) throws InvalidArgumentException, ODMException
attributeName
- attribute namevalue
- float type attribute valueInvalidArgumentException
- is thrownInvalidArgumentException
ODMException
public AttributeInstance(java.lang.String attributeName) throws InvalidArgumentException, ODMException
attributeName
- attribute nameInvalidArgumentException
- is thrownInvalidArgumentException
ODMException
public AttributeInstance(java.lang.String attributeName, java.lang.String value) throws InvalidArgumentException, ODMException
attributeName
- attribute namevalue
- string type attribute valueInvalidArgumentException
- is thrownInvalidArgumentException
ODMException
Method Detail |
public int getIntValue()
int
, return the stored integer value.NumberFormatException
- is thrownpublic float getFloatValue()
float
, return the stored float value.NumberFormatException
- is thrownpublic java.lang.String getStringValue()
String
, return the stored String value; otherwise return null.public boolean isNullValue()
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |