trait RowParser[Row, Input] extends AnyRef
Trait to describe a parser which will yield a Try[Row] from a String representing a row of a table.
- Row
the (parametric) Row type for which there must be evidence of a RowParser[Row, Input].
- Input
the (parametric) Input type for which there must be evidence of a RowParser[Row, Input].
- Annotations
- @implicitNotFound()
- Alphabetic
- By Inheritance
- RowParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def parse(header: Header)(input: Input): 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.
- abstract def parseHeader(xs: Seq[Input]): Try[Header]
Parse the Input, resulting in a Try[Header]
Parse the Input, resulting in a Try[Header]
CONSIDER making this share the same signature as parse but for different Row type.
- xs
a sequence of Inputs to be parsed.
- returns
a Try[Header]
- abstract def parseIndexed(header: Header)(indexedRow: (Input, Int)): Try[Row]
Parses an indexed row, using the given header, into a Try[Row].
Parses an indexed row, using the given header, into a Try[Row].
- header
the header which defines the schema or metadata for parsing the row.
- indexedRow
a tuple containing the input row (of type Input) and its index (of type Int).
- returns
a Try[Row] which will be a Success containing the parsed row if parsing is successful, or a Failure with an exception if parsing fails.
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
- 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
- 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()
- 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)