org.pmml4s.data

Series

trait Series extends AnyRef

Represents one series of output from a relational operator. Allows both generic access by ordinal, which will incur boxing overhead for primitives, as well as native primitive access.

It is invalid to use the native primitive interface to retrieve a value that is null, instead a user must check isNullAt before attempting to retrieve a value that might be null.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Series
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def copy(): Series

    Make a copy of the current Series object.

  2. abstract def get(i: Int): Any

    Returns the value at position i.

    Returns the value at position i. If the value is null, null is returned.

  3. abstract def length: Int

    Number of elements in the Series.

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def anyMissing: Boolean

  7. def anyNull: Boolean

    Returns true if there are any NULL values in this series.

  8. def apply(i: Int): Any

    Returns the value at position i.

    Returns the value at position i. If the value is null, null is returned.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def columns: Array[String]

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def fieldIndex(name: String): Int

    Returns the index of a given field name.

  15. def filter(filter: Seq[String]): Series

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def getAs[T](fieldName: String): T

    Returns the value of a given fieldName.

    Returns the value of a given fieldName. For primitive types if value is null it returns 'zero value' specific for primitive ie. 0 for Int - use isNullAt to ensure that value is not null

    Exceptions thrown
    ClassCastException

    when data type does not match.

    IllegalArgumentException

    when fieldName do not exist.

    UnsupportedOperationException

    when schema is not defined.

  18. def getAs[T](i: Int): T

    Returns the value at position i.

    Returns the value at position i. For primitive types if value is null it returns 'zero value' specific for primitive ie. 0 for Int - use isNullAt to ensure that value is not null

    Exceptions thrown
    ClassCastException

    when data type does not match.

  19. def getBoolean(i: Int): Boolean

  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getDouble(i: Int): Double

  22. def getInt(i: Int): Int

  23. def getLong(i: Int): Long

  24. def getString(i: Int): String

  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isMissingAt(i: Int): Boolean

    Checks whether the value at position i is missing (null or Double.

    Checks whether the value at position i is missing (null or Double.NaN) if the position is valid, otherwise treated as missing too.

  28. def isNullAt(i: Int): Boolean

    Checks whether the value at position i is null.

  29. def mkString(sep: String): String

  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def schema: StructType

    Schema for the Series.

  34. def show(): Unit

  35. def size: Int

    Number of elements in the Series.

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

    Definition Classes
    AnyRef
  37. def toArray: Array[Any]

  38. def toJavaMap: Map[String, Any]

  39. def toJson(isObj: Boolean = true): JsValue

  40. def toMap: Map[String, Any]

  41. def toPairSeq: Seq[(String, Any)]

  42. def toSeq: Seq[Any]

  43. def toString(): String

    Definition Classes
    Series → AnyRef → Any
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped