|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.data.Attribute | +--oracle.dmt.odm.data.MiningAttribute
An instance of MiningAttribute
is a logical concept that describes
a domain of data to be used as input to data mining operations.
Mining attributes are typically either categorical or numerical.
Each mining attribute must have a unique name with a given LogicalDataSpecification
instance.
Constructor Summary |
MiningAttribute(java.lang.String name,
DataType dataType,
AttributeType attributeType)
Creates a new MiningAttribute instance. |
MiningAttribute(java.lang.String name,
DataType dataType,
AttributeType attributeType,
boolean isParentGroup,
boolean isKey)
Deprecated. As of 9.2.0. |
Method Summary |
Type | Method |
---|---|
void |
addNestedAttribute(MiningAttribute attribute)
Deprecated. As of ODM 9.2.0, nested attribute is not supported. |
boolean |
equals(MiningAttribute attribute)
Checks the equality of this attribute against the specified attribute. |
AttributeType |
getAttributeType()
Returns the type of this attribute. |
boolean |
getIsKey()
Deprecated. As of ODM 9.2.0, use supplemental of AttributeUsage . |
boolean |
getIsParentGroup()
Deprecated. As of ODM 9.2.0, nested attribute is not supported. |
MiningAttribute |
getNestedAttribute(java.lang.String attributeName)
Deprecated. As of ODM 9.2.0, nested attribute is not supported. |
MiningAttribute[] |
getNestedAttributes()
Deprecated. As of ODM 9.2.0, nested attribute is not supported. |
int |
getValueCount()
Deprecated. As of ODM 9.2.0, distinct values are not counted. |
boolean |
isNested()
Deprecated. As of ODM 9.2.0, nested attribute is not supported. |
void |
setAttributeType(AttributeType attributeType)
Sets the attribute type. |
void |
setIsKey(boolean key)
Deprecated. As of ODM 9.2.0, use supplemental of AttributeUsage . |
void |
setIsParentGroup(boolean value)
Deprecated. As of ODM 9.2.0, nested attribute is not supported. |
void |
setValueCount(int count)
Deprecated. As of ODM 9.2.0, distinct values are not counted. |
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 MiningAttribute(java.lang.String name, DataType dataType, AttributeType attributeType) throws InvalidArgumentException, ODMException
MiningAttribute
instance.name
- The name of the attributedataType
- The data type of the attribute (e.g., int)attributeType
- The type of the attribute (e.g., categorical)InvalidArgumentException
- name
, dataType
, or
attributeType
is null, or
name
is null, empty or exceeds 30 bytes in length.
public MiningAttribute(java.lang.String name, DataType dataType, AttributeType attributeType, boolean isParentGroup, boolean isKey) throws InvalidArgumentException, ODMException
MiningAttribute
instance.name
- The name of the attributedataType
- The data type of the attribute (e.g., int)attributeType
- The type of the attribute (e.g., categorical)isParentGroup
- true if parent attribute, false otherwiseisKey
- true if primary key, false otherwiseInvalidArgumentException
- name
, dataType
, or
attributeType
is null, or
name
is null, empty or exceeds 30 bytes in length.
Method Detail |
public int getValueCount()
int
- The number of distinct valuespublic AttributeType getAttributeType()
AttributeType
- The type of this attributeAttributeType
public boolean getIsKey()
AttributeUsage
.
boolean
- true if a key, false otherwiseAttributeUsage
public void setIsKey(boolean key)
AttributeUsage
.
key
- The keyness of the attributeAttributeUsage
public void setValueCount(int count)
public void addNestedAttribute(MiningAttribute attribute) throws InvalidArgumentException
attribute
- - A mining attribute to be addedInvalidArgumentException
- attribute
is null, or
attribute
is already nested.
public MiningAttribute[] getNestedAttributes()
MiningAttribute[]
- An array of nested attributespublic MiningAttribute getNestedAttribute(java.lang.String attributeName)
attributeName
- An attribute nameMiningAttribute
- The mining attribute with the specified namepublic void setIsParentGroup(boolean value) throws InvalidArgumentException
value
is true.value
- An indicator for parenthoodInvalidArgumentException
- when the attribute has nested attributes
and value
is false.public boolean getIsParentGroup()
boolean
- true if parent attribute, false otherwisepublic boolean isNested()
boolean
- true if nested, false otherwisepublic boolean equals(MiningAttribute attribute)
attribute
- An attribute to be comparedboolean
- true if equal, false otherwisepublic void setAttributeType(AttributeType attributeType)
attributeType
- attribute typeAttributeType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |