GenericSeriesWithSchema

class GenericSeriesWithSchema(values: Array[Any], val schema: StructType) extends GenericSeries
trait Series
class Object
trait Matchable
class Any

Value members

Concrete methods

override def fieldIndex(name: String): Int
Definition Classes

Inherited methods

def anyMissing: Boolean
Inherited from:
Series
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.

Inherited from:
Series
override def apply(i: Int): Any
Definition Classes
Inherited from:
GenericSeries
def columns: Array[String]
Inherited from:
Series
override def copy(): GenericSeries
Definition Classes
Inherited from:
GenericSeries
def filter(filter: Seq[String]): Series
Inherited from:
Series
override def get(i: Int): Any
Definition Classes
Inherited from:
GenericSeries
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.

Inherited from:
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.

Inherited from:
Series
def getBoolean(i: Int): Boolean
Inherited from:
Series
def getDouble(i: Int): Double
Inherited from:
Series
def getInt(i: Int): Int
Inherited from:
Series
def getLong(i: Int): Long
Inherited from:
Series
def getString(i: Int): String
Inherited from:
Series
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.

Inherited from:
Series
def isNullAt(i: Int): Boolean

Checks whether the value at position i is null.

Checks whether the value at position i is null.

Inherited from:
Series
override def length: Int
Definition Classes
Inherited from:
GenericSeries
def mkString(sep: String): String
Inherited from:
Series
def show(): Unit
Inherited from:
Series
def size: Int

Number of elements in the Series.

Number of elements in the Series.

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

Concrete fields

override val schema: StructType