class NominalAttribute extends Attribute
:: DeveloperApi :: A nominal attribute.
- Annotations
- @DeveloperApi()
- Alphabetic
- By Inheritance
- NominalAttribute
- Attribute
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attrType: AttributeType
Attribute type.
Attribute type.
- Definition Classes
- NominalAttribute → Attribute
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- NominalAttribute → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getNumValues: Option[Int]
Get the number of values, either from
numValues
or fromvalues
.Get the number of values, either from
numValues
or fromvalues
. Return None if unknown. -
def
getValue(index: Int): String
Gets a value given its index.
-
def
hasValue(value: String): Boolean
Tests whether this attribute contains a specific value.
-
def
hashCode(): Int
- Definition Classes
- NominalAttribute → AnyRef → Any
-
val
index: Option[Int]
Index of the attribute.
Index of the attribute. None if it is not set.
- Definition Classes
- NominalAttribute → Attribute
-
def
indexOf(value: String): Int
Index of a specific value.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNominal: Boolean
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute.
- Definition Classes
- NominalAttribute → Attribute
-
def
isNumeric: Boolean
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute.
- Definition Classes
- NominalAttribute → Attribute
- val isOrdinal: Option[Boolean]
-
val
name: Option[String]
Name of the attribute.
Name of the attribute. None if it is not set.
- Definition Classes
- NominalAttribute → Attribute
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val numValues: Option[Int]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toMetadata(): Metadata
Converts to ML metadata
Converts to ML metadata
- Definition Classes
- Attribute
-
def
toMetadata(existingMetadata: Metadata): Metadata
Converts to ML metadata with some existing metadata.
Converts to ML metadata with some existing metadata.
- Definition Classes
- Attribute
-
def
toString(): String
- Definition Classes
- Attribute → AnyRef → Any
-
def
toStructField(): StructField
Converts to a
StructField
.Converts to a
StructField
.- Definition Classes
- Attribute
-
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
- Definition Classes
- Attribute
- val values: Option[Array[String]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withIndex(index: Int): NominalAttribute
Copy with a new index.
Copy with a new index.
- Definition Classes
- NominalAttribute → Attribute
-
def
withName(name: String): NominalAttribute
Copy with a new name.
Copy with a new name.
- Definition Classes
- NominalAttribute → Attribute
-
def
withNumValues(numValues: Int): NominalAttribute
Copy with a new
numValues
and emptyvalues
. -
def
withValues(first: String, others: String*): NominalAttribute
Copy with new values and empty
numValues
.Copy with new values and empty
numValues
.- Annotations
- @varargs()
-
def
withValues(values: Array[String]): NominalAttribute
Copy with new values and empty
numValues
. -
def
withoutIndex: NominalAttribute
Copy without the index.
Copy without the index.
- Definition Classes
- NominalAttribute → Attribute
-
def
withoutName: NominalAttribute
Copy without the name.
Copy without the name.
- Definition Classes
- NominalAttribute → Attribute
-
def
withoutNumValues: NominalAttribute
Copy without the
numValues
. -
def
withoutValues: NominalAttribute
Copy without the values.