Packages

class DataField extends AbstractField with PmmlElement

Defines a field as used in mining models. It specifies the types and value ranges.

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataField
  2. PmmlElement
  3. HasExtensions
  4. AbstractField
  5. Field
  6. Attribute
  7. ValueIndexer
  8. HasIntervals
  9. HasValidValues
  10. HasInvalidValues
  11. HasMissingValues
  12. HasLabels
  13. HasOpType
  14. HasDataType
  15. DataTypeLike
  16. Serializable
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DataField(name: String)
  2. new DataField(name: String, displayName: Option[String], dataType: DataType, opType: OpType, interval: Interval, values: Array[Value])
  3. new DataField(name: String, displayName: Option[String], dataType: DataType, opType: OpType, interval: Interval)
  4. new DataField(name: String, displayName: Option[String], dataType: DataType, opType: OpType, values: Array[Value])
  5. new DataField(name: String, displayName: Option[String], dataType: DataType, opType: OpType, intervals: Array[Interval] = Array.empty, values: Array[Value] = Array.empty, taxonomy: Option[String] = None, isCyclic: Boolean = true)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var _attribute: Attribute

    An internal attribute could be changed.

    An internal attribute could be changed.

    Attributes
    protected
    Definition Classes
    AbstractField
  5. var _index: Int

    Index of the field in the input series.

    Index of the field in the input series.

    Attributes
    protected
    Definition Classes
    AbstractField
  6. var _referenced: Boolean

    A flag if the field is referenced in the model.

    A flag if the field is referenced in the model.

    Attributes
    protected
    Definition Classes
    AbstractField
  7. def accepts(other: DataType): Boolean

    Returns true if other is an acceptable input type for a function that expects this.

    Returns true if other is an acceptable input type for a function that expects this.

    Definition Classes
    DataTypeLike
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def attrType: AttributeType

    Attribute type.

    Attribute type.

    Definition Classes
    FieldAttribute
  10. def attribute: Attribute

    Attribute of the field.

    Attribute of the field.

    Definition Classes
    AbstractFieldField
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  12. val dataType: DataType

    Returns the data type of field.

    Returns the data type of field.

    Definition Classes
    DataFieldDataTypeLike
  13. def decode(index: Int): DataVal
    Definition Classes
    FieldValueIndexer
  14. val displayName: Option[String]

    Display name of the field.

    Display name of the field. None if it is not set.

    Definition Classes
    DataFieldField
  15. def encode(value: DataVal): Double
    Definition Classes
    FieldValueIndexer
  16. def encode(series: Series): Double

    Encodes the value of the field in the input series.

    Encodes the value of the field in the input series.

    Definition Classes
    Field
  17. def encode(value: Any): Double
    Definition Classes
    ValueIndexer
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def extensions: Seq[Extension]
    Definition Classes
    HasExtensions
  21. def fieldType: FieldType

    Field type.

    Field type.

    Definition Classes
    DataFieldField
  22. def get(series: Series): DataVal

    Retrieve its value from the specified series, return null if missing

    Retrieve its value from the specified series, return null if missing

    Definition Classes
    AbstractFieldField
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. def getDouble(series: Series): Double

    Retrieve its value as double from the specified series, return Double.NaN if missing.

    Retrieve its value as double from the specified series, return Double.NaN if missing.

    Definition Classes
    Field
  25. def getDoubleVal(series: Series): DoubleVal
    Definition Classes
    Field
  26. def getLabel(value: DataVal): Option[String]
    Definition Classes
    FieldHasLabels
  27. def hasExtensions: Boolean
    Definition Classes
    HasExtensions
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  29. def index: Int

    Index of the field in the input series.

    Index of the field in the input series.

    Definition Classes
    AbstractFieldField
    Annotations
    @inline()
  30. def indexDefined: Boolean

    Tests if the index of this field is defined

    Tests if the index of this field is defined

    Definition Classes
    Field
  31. def index_=(i: Int): Unit

    Sets the index of this field.

    Sets the index of this field.

    Definition Classes
    AbstractFieldField
  32. val intervals: Array[Interval]
    Definition Classes
    DataFieldFieldHasIntervals
  33. def invalidValues: Set[DataVal]
    Definition Classes
    FieldHasInvalidValues
  34. def isBinary: Boolean

    Tests whether this field is binary, that is categorical and it contains exactly two valid values.

    Tests whether this field is binary, that is categorical and it contains exactly two valid values.

    Definition Classes
    FieldHasValidValues
  35. def isCategorical: Boolean

    Tests whether this field is categorical (nominal or ordinal).

    Tests whether this field is categorical (nominal or ordinal).

    Definition Classes
    HasOpType
  36. def isContinuous: Boolean

    Tests whether this field is continuous.

    Tests whether this field is continuous.

    Definition Classes
    HasOpType
  37. val isCyclic: Boolean
  38. def isDataField: Boolean

    Tests if the field is a data field.

    Tests if the field is a data field.

    Definition Classes
    Field
  39. def isDate: Boolean
    Definition Classes
    FieldDataTypeLike
  40. def isDateTime: Boolean
    Definition Classes
    DataTypeLike
  41. def isDerivedField: Boolean

    Tests if the field is a derived field.

    Tests if the field is a derived field.

    Definition Classes
    Field
  42. def isDouble: Boolean
    Definition Classes
    FieldDataTypeLike
  43. def isFloat: Boolean
    Definition Classes
    FieldDataTypeLike
  44. def isIn(value: Any): Boolean
    Definition Classes
    HasIntervals
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def isInvalidValue(value: DataVal): Boolean
    Definition Classes
    FieldHasInvalidValues
  47. def isInvalidValue(value: Any): Boolean
    Definition Classes
    HasInvalidValues
  48. def isMissing(series: Series): Boolean

    Tests if its value is missing from the specified series.

    Tests if its value is missing from the specified series.

    Definition Classes
    Field
  49. def isMissingValue(value: DataVal): Boolean
    Definition Classes
    FieldHasMissingValues
  50. def isMissingValue(value: Any): Boolean
    Definition Classes
    HasMissingValues
  51. def isMutable: Boolean
    Definition Classes
    FieldAttribute
  52. def isNominal: Boolean

    Tests whether this field is nominal.

    Tests whether this field is nominal.

    Definition Classes
    HasOpType
  53. def isNumeric: Boolean
    Definition Classes
    FieldDataTypeLike
  54. def isOrdinal: Boolean

    Tests whether this field is ordinal.

    Tests whether this field is ordinal.

    Definition Classes
    HasOpType
  55. lazy val isPlain: Boolean
    Definition Classes
    FieldAttribute
  56. def isReal: Boolean
    Definition Classes
    DataTypeLike
  57. def isString: Boolean
    Definition Classes
    FieldDataTypeLike
  58. def isTime: Boolean
    Definition Classes
    FieldDataTypeLike
  59. def isTimestamp: Boolean
    Definition Classes
    FieldDataTypeLike
  60. def isValidValue(value: DataVal): Boolean
    Definition Classes
    FieldHasValidValues
  61. def isValidValue(value: Any): Boolean
    Definition Classes
    HasValidValues
  62. def labels: Map[DataVal, String]
    Definition Classes
    FieldHasLabels
  63. def missingValues: Set[DataVal]
    Definition Classes
    FieldHasMissingValues
  64. val name: String

    Name of the field.

    Name of the field.

    Definition Classes
    DataFieldField
  65. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  66. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  67. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  68. def numCategories: Int
    Definition Classes
    FieldHasValidValues
  69. val opType: OpType

    Operational type.

    Operational type.

    Definition Classes
    DataFieldHasOpType
  70. def referenced: Boolean

    Tests if the field is referenced in the model element.

    Tests if the field is referenced in the model element.

    Definition Classes
    AbstractFieldField
  71. def referenced_=(r: Boolean): Unit

    Sets the referenced flag of the field.

    Sets the referenced flag of the field.

    Definition Classes
    AbstractFieldField
  72. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  73. val taxonomy: Option[String]
  74. def toAttribute: Attribute
    Definition Classes
    FieldAttribute
  75. def toImmutable: DataField.this.type

    Converts to an immutable attribute if it's mutable.

    Converts to an immutable attribute if it's mutable.

    Definition Classes
    AbstractFieldField
  76. def toString(): String
    Definition Classes
    AnyRef → Any
  77. def toVal(s: String): DataVal

    Converts a string to the corresponding value based on its data type.

    Converts a string to the corresponding value based on its data type.

    Definition Classes
    Field
    Exceptions thrown

    java.lang.NumberFormatException - If the string does not contain a parsable number if dataType is numeric

  78. def toValOption(s: String): Option[DataVal]

    Converts a string to the corresponding value based on its data type.

    Converts a string to the corresponding value based on its data type.

    returns

    None if any error occurs

    Definition Classes
    Field
  79. def validValues: Array[DataVal]
    Definition Classes
    FieldHasValidValues
  80. val values: Array[Value]
  81. def valuesAsString: String
    Definition Classes
    Attribute
  82. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  84. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from PmmlElement

Inherited from HasExtensions

Inherited from AbstractField

Inherited from Field

Inherited from Attribute

Inherited from ValueIndexer

Inherited from HasIntervals

Inherited from HasValidValues

Inherited from HasInvalidValues

Inherited from HasMissingValues

Inherited from HasLabels

Inherited from HasOpType

Inherited from HasDataType

Inherited from DataTypeLike

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped