trait TableParser[Table] extends TableBuilder[Table]
Type class to parse a set of rows as a Table.
- Table
the Table type.
- Annotations
- @implicitNotFound()
- Alphabetic
- By Inheritance
- TableParser
- TableBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type Input
The input type, typically
StringorStrings. - abstract type Row
The row type.
The row type.
- Definition Classes
- TableBuilder
Abstract Value Members
- abstract def builder(rows: Iterator[Row], header: Header): Table
Method to construct a Table based on the given iterator of rows and the given header.
Method to construct a Table based on the given iterator of rows and the given header.
- rows
an iterator of Row objects representing the data rows.
- header
a Header object representing the table's column headers.
- returns
the constructed Table based on the input rows and header.
- Attributes
- protected
- Definition Classes
- TableBuilder
- abstract def parse(xs: Iterator[Input], n: Int = headerRowsToRead): Try[Table]
Method to parse a table based on an iterator of Inputs.
Method to parse a table based on an iterator of Inputs.
- xs
the sequence of Inputs, one for each row
- n
the number of rows to drop (length of the header).
- returns
an Try[Table]
- abstract val rowParser: RowParser[Row, Input]
Method to define a row parser.
Method to define a row parser.
- returns
a RowParser[Row, Input].
Concrete 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val forgiving: Boolean
If true, individual row failures are logged but do not cause the overall parse to fail.
If true, individual row failures are logged but do not cause the overall parse to fail.
- Attributes
- protected
- Definition Classes
- TableBuilder
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val headerRowsToRead: Int
This indicates the number of header rows which must be read from the input.
This indicates the number of header rows which must be read from the input. The value is usually 1 but some types of CSV file have more than one header line. If maybeHeader exists, then this number is ignored.
CONSIDER if this is really ignored when maybeHeader is defined, then we should eliminate such places where this value has an override of 0.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maybeHeader: Option[Header]
This variable determines if there is a programmed, i.e., fixed, header for the parser.
This variable determines if there is a programmed, i.e., fixed, header for the parser. If its value is None, it signifies that we must look to the first line(s) of data for an appropriate header.
- Attributes
- protected
- val multiline: Boolean
Value to determine whether it is acceptable to have a quoted string span more than one line.
Value to determine whether it is acceptable to have a quoted string span more than one line.
- returns
true if quoted strings may span more than one line.
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val predicate: (Try[Row]) => Boolean
Predicate to filter rows.
Predicate to filter rows. Defaults to including all rows.
- Attributes
- protected
- Definition Classes
- TableBuilder
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)