case class StandardRowParser[Row](parser: LineParser)(implicit evidence$1: CellParser[Row]) extends StringParser[Row] with Product with Serializable
StandardRowParser: a parser which extends RowParser[Row] and will yield a Try[Row] from a String representing a line of a table.
- Row
the (parametric) Row type for which there must be evidence of a CellParser[Row].
- parser
the LineParser to use
- Alphabetic
- By Inheritance
- StandardRowParser
- Serializable
- Product
- Equals
- StringParser
- RowParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StandardRowParser(parser: LineParser)(implicit arg0: CellParser[Row])
- parser
the LineParser to use
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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parse(header: Header)(input: String): Try[Row]
Parses the given input using the provided header and produces a result wrapped in a Try.
Parses the given input using the provided header and produces a result wrapped in a Try.
- header
the header object that defines the schema or metadata for parsing the row.
- input
the input of type Input to be parsed into a row of type Row.
- returns
a Try[Row], where Success contains the parsed row if parsing succeeds, or Failure contains an exception if parsing fails.
- Definition Classes
- StandardRowParser → RowParser
- def parseHeader(xs: Strings): Try[Header]
Method to parse a String as a Try[Header].
Method to parse a String as a Try[Header].
- xs
the header row(s) as a String.
- returns
a Try[Header].
- Definition Classes
- StandardRowParser → RowParser
- def parseIndexed(header: Header)(indexedString: (String, Int)): Try[Row]
Parses a given indexed string (line and its index in a file) using a provided header and the internal row parser.
Parses a given indexed string (line and its index in a file) using a provided header and the internal row parser. This method converts the parsed row of data (as Strings) into a well-defined
Rowobject according to the header.- header
the header object providing column information for the row.
- indexedString
a tuple containing the string representation of the line and its index in the file.
- returns
a
Try[Row]representing the parsed and converted row, or a failure if the parsing or conversion fails.
- Definition Classes
- StandardRowParser → RowParser
- val parser: LineParser
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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)