io.github.quafadas.scautable
package io.github.quafadas.scautable
Members list
Type members
Classlikes
object ColumnTyped
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ColumnTyped.type
object ConsoleFormat
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConsoleFormat.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
class CsvIterator[K <: Tuple](filePath: String) extends Iterator[NamedTuple[K, StringyTuple[K & Tuple]]]
A NamedTuple representation of a CSV file.
A NamedTuple representation of a CSV file.
It is a (lazy) iterator that reads a CSV file line by line and converts each line into a NamedTuple.
Attempting to use the iterator a second time will throw a StreamClosedException
. Common usage
def csvIterator = CSV.resource("simple.csv")
val csvData = csvIterator.toSeq
Note that at this point, you are plugged right into the scala collections API.
csvData.filter(_.column("colA") == "foo").drop(10).take(5).map(_.column("colB"))
etc
Attributes
- Supertypes
-
trait IterableOnceOps[NamedTuple[K, StringyTuple[K & Tuple]], Iterator, Iterator[NamedTuple[K, StringyTuple[K & Tuple]]]]class Objecttrait Matchableclass AnyShow all
class ExcelIterator[K](filePath: String, sheetName: String, colRange: Option[String]) extends Iterator[NamedTuple[K & Tuple, StringyTuple[K & Tuple]]]
Attributes
- Supertypes
-
trait IterableOnceOps[NamedTuple[K & Tuple, StringyTuple[K & Tuple]], Iterator, Iterator[NamedTuple[K & Tuple, StringyTuple[K & Tuple]]]]class Objecttrait Matchableclass AnyShow all
object NamedTupleIteratorExtensions
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
trait PlatformSpecific
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object scautable
object scautable extends PlatformSpecific
This is a simple library to render a scala case class as an html table. It assumes the presence of a HtmlTableRender instance for each type in the case class.
This is a simple library to render a scala case class as an html table. It assumes the presence of a HtmlTableRender instance for each type in the case class.
Attributes
- Supertypes
- Self type
-
scautable.type
Value members
Concrete methods
In this article