case class RawTableParser(predicate: (Try[RawRow]) => Boolean = TableParser.includeAll, maybeFixedHeader: Option[Header] = None, forgiving: Boolean = false, multiline: Boolean = false, headerRowsToRead: Int = 1) extends StringTableParser[Table[Seq[String]]] with CopyableTableParser[RawRow, String, Table[Seq[String]]] with Product with Serializable

Class used to parse files as a Table of Seq[String]. That's to say, no parsing of individual (or groups of) columns.

predicate

a predicate which, if true, allows inclusion of the input row.

maybeFixedHeader

an optional fixed header. If None, we expect to find the header defined in the first line of the file.

forgiving

forcing (defaults to true). If true then an individual malformed row will not prevent subsequent rows being parsed.

Linear Supertypes
Serializable, Product, Equals, CopyableTableParser[RawRow, String, Table[Seq[String]]], StringTableParser[Table[Seq[String]]], AbstractTableParser[Table[Seq[String]]], TableParser[Table[Seq[String]]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RawTableParser
  2. Serializable
  3. Product
  4. Equals
  5. CopyableTableParser
  6. StringTableParser
  7. AbstractTableParser
  8. TableParser
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RawTableParser(predicate: (Try[RawRow]) => Boolean = TableParser.includeAll, maybeFixedHeader: Option[Header] = None, forgiving: Boolean = false, multiline: Boolean = false, headerRowsToRead: Int = 1)

    predicate

    a predicate which, if true, allows inclusion of the input row.

    maybeFixedHeader

    an optional fixed header. If None, we expect to find the header defined in the first line of the file.

    forgiving

    forcing (defaults to true). If true then an individual malformed row will not prevent subsequent rows being parsed.

Type Members

  1. type Input = String

    The input type.

    The input type.

    Definition Classes
    StringTableParserTableParser
  2. type Row = Seq[String]

    The row type.

    The row type.

    Definition Classes
    RawTableParserTableParser

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def builder(rows: Iterable[Row], header: Header): Table[Row]

    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.

    CONSIDER changing Iterable back to Iterator as it was at V1.0.13.

    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
    RawTableParserTableParser
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def doParseRows[T](ts: Iterator[T], header: Header, f: ((T, Int)) => (Header) => Try[Row])(implicit arg0: Joinable[T]): Try[Table[Seq[String]]]

    Common code for parsing rows.

    Common code for parsing rows.

    CONSIDER convert T to Input

    CONSIDER switch order of f

    T

    the parametric type of the resulting Table. T corresponds to Input in the calling method, i.e. a Row. Must be Joinable.

    ts

    a sequence of Ts.

    header

    the Header.

    f

    a curried function which transforms a (T, Int) into a function which is of type Header => Try[Row].

    returns

    a Try of Table

    Attributes
    protected
    Definition Classes
    AbstractTableParser
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def failureHandler(ry: Try[Row]): Unit
    Attributes
    protected
    Definition Classes
    AbstractTableParser
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. 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.

    Definition Classes
    RawTableParserTableParser
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. 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. If maybeFixedHeader exists, then this number should be zero.

    Definition Classes
    RawTableParserTableParser
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. 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.

    Definition Classes
    RawTableParserTableParser
  16. 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.

    Definition Classes
    RawTableParserTableParser
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def parse(xs: Iterator[Input], n: Int = 0): Try[Table[Seq[String]]]

    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

    n

    the number of lines that should be used as a Header. If n == 0 == maybeFixedHeader.empty then there is a logic error.

    returns

    a Try[Table]

    Definition Classes
    AbstractTableParserTableParser
  21. def parseRows(xs: Iterator[String], header: Header): Try[Table[Seq[String]]]

    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
    StringTableParserAbstractTableParser
  22. val predicate: (Try[RawRow]) => Boolean

    Function to determine whether or not a row should be included in the table.

    Function to determine whether or not a row should be included in the table. Typically used for random sampling.

    Attributes
    protected
    Definition Classes
    RawTableParserTableParser
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. val rowParser: RowParser[Row, String]

    Method to define a row parser.

    Method to define a row parser.

    returns

    a RowParser[Row, Input].

    Definition Classes
    RawTableParserTableParser
  25. def setForgiving(b: Boolean): RawTableParser
    Definition Classes
    RawTableParserCopyableTableParser
  26. def setHeader(header: Header): RawTableParser
    Definition Classes
    RawTableParserCopyableTableParser
  27. def setMultiline(b: Boolean): RawTableParser
    Definition Classes
    RawTableParserCopyableTableParser
  28. def setPredicate(p: (Try[RawRow]) => Boolean): RawTableParser
    Definition Classes
    RawTableParserCopyableTableParser
  29. def setRowParser(rp: RowParser[RawRow, String]): RawTableParser
    Definition Classes
    RawTableParserCopyableTableParser
  30. implicit val stringSeqParser: CellParser[RawRow]
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CopyableTableParser[RawRow, String, Table[Seq[String]]]

Inherited from StringTableParser[Table[Seq[String]]]

Inherited from AbstractTableParser[Table[Seq[String]]]

Inherited from TableParser[Table[Seq[String]]]

Inherited from AnyRef

Inherited from Any

Ungrouped