org.apache.spark.ml.attribute
Class AttributeType

Object
  extended by org.apache.spark.ml.attribute.AttributeType

public abstract class AttributeType
extends Object

:: DeveloperApi :: An enum-like type for attribute types: AttributeType$.Numeric, AttributeType$.Nominal, and AttributeType$.Binary.


Constructor Summary
AttributeType(String name)
           
 
Method Summary
static AttributeType Binary()
          Binary type.
static AttributeType fromName(String name)
          Gets the AttributeType object from its name.
 String name()
           
static AttributeType Nominal()
          Nominal type.
static AttributeType Numeric()
          Numeric type.
static AttributeType Unresolved()
          Unresolved type.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeType

public AttributeType(String name)
Method Detail

Numeric

public static AttributeType Numeric()
Numeric type.


Nominal

public static AttributeType Nominal()
Nominal type.


Binary

public static AttributeType Binary()
Binary type.


Unresolved

public static AttributeType Unresolved()
Unresolved type.


fromName

public static AttributeType fromName(String name)
Gets the AttributeType object from its name.

Parameters:
name - attribute type name: "numeric", "nominal", or "binary"
Returns:
(undocumented)

name

public String name()