implicit class ScalaDataTable extends AnyRef
DataTable extension class providing methods to read a DataTable as Scala types.
Note: we do not filter out null values because users might rely on the keyset in their implementation.
- Alphabetic
- By Inheritance
- ScalaDataTable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ScalaDataTable(table: DataTable)
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 asScalaDataTable: ScalaDataTable
- def asScalaList: Seq[Option[String]]
Provides a view of the DataTable as a simple list of values.
Provides a view of the DataTable as a simple list of values. Equivalent of
.asList()
but returned as Scala collection types withoutnull
values.- returns
list of values
- def asScalaList[T](implicit ev: ClassTag[T]): Seq[Option[T]]
Provides a view of the DataTable as a simple list of values.
Provides a view of the DataTable as a simple list of values. Equivalent of
.asList[T](classOf[T])
but returned as Scala collection types withoutnull
values.See also
asScalaRawList[T]
if you don't needOption
s (for instance if you are using a DataTableType).- T
cell type
- returns
list of values
- def asScalaLists: Seq[Seq[Option[String]]]
Provides a view of the DataTable as a matrix.
Provides a view of the DataTable as a matrix. Equivalent of
.asLists()
but returned as Scala collection types withoutnull
values.- returns
matrix
- def asScalaLists[T](implicit ev: ClassTag[T]): Seq[Seq[Option[T]]]
Provides a view of the DataTable as a matrix.
Provides a view of the DataTable as a matrix. Equivalent of
.asLists[T](classOf[T])
but returned as Scala collection types withoutnull
values.See also
asScalaRawLists[T]
if you don't needOption
s (for instance if you are using a DataTableType).- T
cell type
- returns
matrix
- def asScalaMap[K, V](implicit evK: ClassTag[K], evV: ClassTag[V]): Map[K, Option[V]]
Provides a view of the DataTable as a key-value map where key are the first column values.
Provides a view of the DataTable as a key-value map where key are the first column values. Equivalent of
.asMap[K,V](classOf[K],classOf[V])
but returned as Scala collection types withoutnull
values.- K
key type
- V
value type
- returns
key-value map
- def asScalaMaps: Seq[Map[String, Option[String]]]
Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name.
Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name. Equivalent of
.asMaps()
but returned as Scala collection types withoutnull
values.- returns
sequence of rows
- def asScalaMaps[K, V](implicit evK: ClassTag[K], evV: ClassTag[V]): Seq[Map[K, Option[V]]]
Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name.
Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name. Equivalent of
.asMaps[K,V](classOf[K], classOf[V])
but returned as Scala collection types withoutnull
values.See also
asScalaRawMaps[T]
if you don't needOption
s (for instance if you are using a DataTableType).- K
key type
- V
value type
- returns
sequence of rows
- def asScalaRawList[T](implicit ev: ClassTag[T]): Seq[T]
Provides a view of the DataTable as a simple list of values.
Provides a view of the DataTable as a simple list of values. Equivalent of
.asList[T](classOf[T])
but returned as Scala collection types.See also
asScalaList[T]
.- T
cell/row type
- returns
list of values
- def asScalaRawLists[T](implicit ev: ClassTag[T]): Seq[Seq[T]]
Provides a view of the DataTable as a matrix.
Provides a view of the DataTable as a matrix. Equivalent of
.asLists[T](classOf[T])
but returned as Scala collection types.See also
asScalaLists[T]
- T
cell type
- returns
matrix
- def asScalaRawMaps[K, V](implicit evK: ClassTag[K], evV: ClassTag[V]): Seq[Map[K, V]]
Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name.
Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name. Equivalent of
.asMaps[K,V](classOf[K], classOf[V])
but returned as Scala collection types.See also
asScalaMaps[T]
.- K
key type
- V
value type
- returns
sequence of rows
- def asScalaRowColumnMap: Map[String, Map[String, Option[String]]]
Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.
Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.
- returns
map of rows
- def asScalaRowColumnMap[K](implicit evK: ClassTag[K]): Map[K, Map[String, Option[String]]]
Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.
Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.
- K
key type
- returns
map of rows
- def asScalaRowMap: Map[String, Seq[Option[String]]]
Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.
Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.
- returns
map of rows
- def asScalaRowMap[K](implicit evK: ClassTag[K]): Map[K, Seq[Option[String]]]
Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.
Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.
- K
key type
- returns
map of rows
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated