Class/Object

org.apache.spark.ml.attribute

NominalAttribute

Related Docs: object NominalAttribute | package attribute

Permalink

class NominalAttribute extends Attribute

:: DeveloperApi :: A nominal attribute.

Annotations
@DeveloperApi()
Source
attributes.scala
Linear Supertypes
Attribute, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NominalAttribute
  2. Attribute
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def attrType: AttributeType

    Permalink

    Attribute type.

    Attribute type.

    Definition Classes
    NominalAttributeAttribute
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    NominalAttribute → AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getNumValues: Option[Int]

    Permalink

    Get the number of values, either from numValues or from values.

    Get the number of values, either from numValues or from values. Return None if unknown.

  12. def getValue(index: Int): String

    Permalink

    Gets a value given its index.

  13. def hasValue(value: String): Boolean

    Permalink

    Tests whether this attribute contains a specific value.

  14. def hashCode(): Int

    Permalink
    Definition Classes
    NominalAttribute → AnyRef → Any
  15. val index: Option[Int]

    Permalink

    optional index

    optional index

    Definition Classes
    NominalAttributeAttribute
  16. def indexOf(value: String): Int

    Permalink

    Index of a specific value.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isNominal: Boolean

    Permalink

    Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.

    Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.

    Definition Classes
    NominalAttributeAttribute
  19. def isNumeric: Boolean

    Permalink

    Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.

    Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.

    Definition Classes
    NominalAttributeAttribute
  20. val isOrdinal: Option[Boolean]

    Permalink

    whether this attribute is ordinal (optional)

  21. val name: Option[String]

    Permalink

    optional name

    optional name

    Definition Classes
    NominalAttributeAttribute
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val numValues: Option[Int]

    Permalink

    optional number of values.

    optional number of values. At most one of numValues and values can be defined.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toMetadata(): Metadata

    Permalink

    Converts to ML metadata

    Converts to ML metadata

    Definition Classes
    Attribute
  28. def toMetadata(existingMetadata: Metadata): Metadata

    Permalink

    Converts to ML metadata with some existing metadata.

    Converts to ML metadata with some existing metadata.

    Definition Classes
    Attribute
  29. def toString(): String

    Permalink
    Definition Classes
    Attribute → AnyRef → Any
  30. def toStructField(): StructField

    Permalink

    Converts to a StructField.

    Converts to a StructField.

    Definition Classes
    Attribute
  31. def toStructField(existingMetadata: Metadata): StructField

    Permalink

    Converts to a StructField with some existing metadata.

    Converts to a StructField with some existing metadata.

    existingMetadata

    existing metadata to carry over

    Definition Classes
    Attribute
  32. val values: Option[Array[String]]

    Permalink

    optional values.

    optional values. At most one of numValues and values can be defined.

  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def withIndex(index: Int): NominalAttribute

    Permalink

    Copy with a new index.

    Copy with a new index.

    Definition Classes
    NominalAttributeAttribute
  37. def withName(name: String): NominalAttribute

    Permalink

    Copy with a new name.

    Copy with a new name.

    Definition Classes
    NominalAttributeAttribute
  38. def withNumValues(numValues: Int): NominalAttribute

    Permalink

    Copy with a new numValues and empty values.

  39. def withValues(first: String, others: String*): NominalAttribute

    Permalink

    Copy with new values and empty numValues.

    Copy with new values and empty numValues.

    Annotations
    @varargs()
  40. def withValues(values: Array[String]): NominalAttribute

    Permalink

    Copy with new values and empty numValues.

  41. def withoutIndex: NominalAttribute

    Permalink

    Copy without the index.

    Copy without the index.

    Definition Classes
    NominalAttributeAttribute
  42. def withoutName: NominalAttribute

    Permalink

    Copy without the name.

    Copy without the name.

    Definition Classes
    NominalAttributeAttribute
  43. def withoutNumValues: NominalAttribute

    Permalink

    Copy without the numValues.

  44. def withoutValues: NominalAttribute

    Permalink

    Copy without the values.

Inherited from Attribute

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Members