Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

oracle.dmt.odm
Class AttributeType

java.lang.Object
  |
  +--oracle.dmt.odm.Enum
        |
        +--oracle.dmt.odm.AttributeType
All Implemented Interfaces:
java.io.Serializable

public class AttributeType
extends Enum

The enumeration class AttributeType is used to specify whether a mining attribute is categorical or numerical.

The semantics of the value are as follows:

Since:
9.0.1
See Also:
Serialized Form

Field Summary
static AttributeType categorical
          Identifies a MiningAttribute as categorical.
static AttributeType notApplicable
          Identifies a MiningAttribute, such as keys, that are neither categorical or numerical.
static AttributeType numerical
          Identifies a MiningAttribute as numerical, eg. containing values that are continuous or discrete numbers
static AttributeType text
          Identifies a MiningAttribute, as an Oracle Text type.

 

Method Summary
static AttributeType getInstance(int id)
          Returns AttributeType enumeration object corresponding to the specified ID.
static AttributeType getInstance(java.lang.String name)
          Returns AttributeType enumeration object corresponding to the specified name.
static AttributeType[] list()
          Returns the list of all AttributeType enumerations defined.
static java.lang.String[] listNames()
          Returns the list of names of all AttributeType enumerations defined.

 

Methods inherited from class oracle.dmt.odm.Enum
getEnum, getID, isEqual

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

categorical

public static final AttributeType categorical
Identifies a MiningAttribute as categorical.

numerical

public static final AttributeType numerical
Identifies a MiningAttribute as numerical, eg. containing values that are continuous or discrete numbers

notApplicable

public static final AttributeType notApplicable
Identifies a MiningAttribute, such as keys, that are neither categorical or numerical.

text

public static final AttributeType text
Identifies a MiningAttribute, as an Oracle Text type.
Since:
10.1.0
Method Detail

listNames

public static java.lang.String[] listNames()
Returns the list of names of all AttributeType enumerations defined.
Returns:
array of names for the AttributeType enumeration

list

public static AttributeType[] list()
Returns the list of all AttributeType enumerations defined.
Returns:
array of enumeration values for the AttributeType enumeration

getInstance

public static AttributeType getInstance(java.lang.String name)
Returns AttributeType enumeration object corresponding to the specified name.
Parameters:
name - attribute type name (categorical, numerical, or notApplicable)
Returns:
instance of the AttributeType enumeration object corresponding to the given name, null if there is no enumeration for this name.

getInstance

public static AttributeType getInstance(int id)
Returns AttributeType enumeration object corresponding to the specified ID.
Parameters:
id - (0, 1, 2)
Returns:
instance of the AttributeType enumeration object corresponding to the given id, null if there is no enumeration for id.

Copyright © 2003 Oracle Corporation. All Rights Reserved.