Series

trait Series

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.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def copy(): Series

Make a copy of the current Series object.

Make a copy of the current Series object.

def get(i: Int): Any

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

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

def length: Int

Number of elements in the Series.

Number of elements in the Series.

Concrete methods

def anyMissing: Boolean
def anyNull: Boolean

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

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

def apply(i: Int): Any

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

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

def columns: Array[String]
def fieldIndex(name: String): Int

Returns the index of a given field name.

Returns the index of a given field name.

def filter(filter: Seq[String]): Series
def getAs[T](i: Int): T

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

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

Throws:
ClassCastException

when data type does not match.

def getAs[T](fieldName: String): T

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

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

Throws:
ClassCastException

when data type does not match.

IllegalArgumentException

when fieldName do not exist.

UnsupportedOperationException

when schema is not defined.

def getBoolean(i: Int): Boolean
def getDouble(i: Int): Double
def getInt(i: Int): Int
def getLong(i: Int): Long
def getString(i: Int): String
def isMissingAt(i: Int): Boolean

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

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

def isNullAt(i: Int): Boolean

Checks whether the value at position i is null.

Checks whether the value at position i is null.

def mkString(sep: String): String

Schema for the Series.

Schema for the Series.

def show(): Unit
def size: Int

Number of elements in the Series.

Number of elements in the Series.

def toArray: Array[Any]
def toJavaMap: Map[String, Any]
def toJson(isObj: Boolean): JsValue
def toMap: Map[String, Any]
def toPairSeq: Seq[(String, Any)]
def toSeq: Seq[Any]
override def toString: String
Definition Classes
Any