abstract class StringsTableParser[Table] extends AbstractTableParser[Table]
Abstract class to extend AbstractTableParser but with Input = Strings This is the unusual situation where a file is a sequence of a sequence of Strings, each representing one value.
- Table
the table type.
- Alphabetic
- By Inheritance
- StringsTableParser
- AbstractTableParser
- TableParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StringsTableParser()
Type Members
- type Input = Seq[String]
The input type.
The input type.
- Definition Classes
- StringsTableParser → TableParser
- abstract type Row
The row type.
The row type.
- Definition Classes
- TableParser
Abstract Value Members
- abstract def builder(rows: Iterator[Row], header: Header): Table
Default method to create a new table.
Default method to create a new table. It does this by invoking either builderWithHeader or builderWithoutHeader, as appropriate.
- rows
the rows which will make up the table.
- header
the Header, derived either from the program or the data.
- returns
an instance of Table.
- Attributes
- protected
- Definition Classes
- TableParser
- abstract val maybeFixedHeader: Option[Header]
This variable determines if there is a programmed, i.e.
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 of data for an appropriate header.
- Attributes
- protected
- Definition Classes
- TableParser
- abstract val rowParser: RowParser[Row, Input]
Method to define a row parser.
Method to define a row parser.
- returns
a RowParser[Row, Input].
- Attributes
- protected
- Definition Classes
- TableParser
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()
- def doParseRows[T](ts: Iterator[T], header: Header, f: (T) => (Header) => Try[Row]): Try[Table]
Common code for parsing rows.
Common code for parsing rows.
- T
the parametric type of the resulting Table. T corresponds to Input in the calling method, i.e. a Row.
- ts
a sequence of Ts.
- header
the Header.
- f
a curried function which transforms a T into a function which is of type Header => Try[Row].
- returns
a Try of Table
- Attributes
- protected
- Definition Classes
- AbstractTableParser
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val forgiving: Boolean
Method to determine how errors are handled.
Method to determine how errors are handled.
- returns
true if individual errors are logged but do not cause parsing to fail.
- Attributes
- protected
- Definition Classes
- TableParser
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logFailures(rys: Iterator[Try[Row]]): Iterator[Try[Row]]
Method to log any failures (only in forgiving mode).
Method to log any failures (only in forgiving mode).
- rys
the sequence of Try[Row]
- returns
a sequence of Try[Row] which will all be of type Success.
- Attributes
- protected
- Definition Classes
- AbstractTableParser → TableParser
- 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()
- def parse(xs: Iterator[Input]): Try[Table]
Method to parse a table based on a sequence of Inputs.
Method to parse a table based on a sequence of Inputs.
- xs
the sequence of Inputs, one for each row
- returns
a Try[Table]
- Definition Classes
- AbstractTableParser → TableParser
- def parseRows(xs: Iterator[Strings], header: Header): Try[Table]
Abstract method to parse a sequence of Inputs, with a given header.
Abstract method to parse a sequence of Inputs, with a given header.
- xs
the sequence of Inputs, one for each row
- header
the header to be used.
- returns
a Try[Table]
- Definition Classes
- StringsTableParser → AbstractTableParser
- 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()