sealed abstract class Attribute extends Serializable
- Alphabetic
- By Inheritance
- Attribute
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
attrType: AttributeType
Attribute type.
-
abstract
def
index: Option[Int]
Index of the attribute.
Index of the attribute. None if it is not set.
-
abstract
def
isNominal: Boolean
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
-
abstract
def
isNumeric: Boolean
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
-
abstract
def
name: Option[String]
Name of the attribute.
Name of the attribute. None if it is not set.
-
abstract
def
withIndex(index: Int): Attribute
Copy with a new index.
-
abstract
def
withName(name: String): Attribute
Copy with a new name.
-
abstract
def
withoutIndex: Attribute
Copy without the index.
-
abstract
def
withoutName: Attribute
Copy without the name.
Concrete Value Members
-
def
toMetadata(): Metadata
Converts to ML metadata
-
def
toMetadata(existingMetadata: Metadata): Metadata
Converts to ML metadata with some existing metadata.
-
def
toString(): String
- Definition Classes
- Attribute → AnyRef → Any
-
def
toStructField(): StructField
Converts to a
StructField
. -
def
toStructField(existingMetadata: Metadata): StructField
Converts to a
StructField
with some existing metadata.Converts to a
StructField
with some existing metadata.- existingMetadata
existing metadata to carry over