abstract class AbstractRowProcessor[Row] extends RowProcessor[Row]

Abstract class representing a row processor for handling input rows and parsing them into a specified row type.

This class extends the RowProcessor type class and provides additional methods for processing iterators of input rows based on headers and transformation functions. It relies on the implicit evidence of the Joinable type class to define behavior for handling the input type.

Row

the type of rows output by this processor.

Linear Supertypes
RowProcessor[Row], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractRowProcessor
  2. RowProcessor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AbstractRowProcessor()

Type Members

  1. abstract type Input

    The input type, typically String.

    The input type, typically String.

    Definition Classes
    RowProcessor

Abstract Value Members

  1. 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
    RowProcessor

Concrete 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. 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
    RowProcessor
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. 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 maybeHeader exists, then this property is ignored.

    Definition Classes
    RowProcessor
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. 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
    Definition Classes
    RowProcessor
  14. 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
    Definition Classes
    RowProcessor
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. val predicate: (Try[Row]) => 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
    RowProcessor
  19. def process(xs: Iterator[Input], n: Int)(implicit ev: Joinable[Input]): Iterator[Row]

    Processes an iterator of input rows with an optional header and parses them into rows.

    Processes an iterator of input rows with an optional header and parses them into rows.

    NOTE this will not work as required because it will still have to collect all of the individual elements inside a Try at some point. That defeats the purpose of just being able to iterate.

    Depending on the presence of a fixed header and the number of rows to drop (n): - If a fixed header is available, the processing starts after dropping the first n rows. - If no fixed header is available but n > 0, the first n rows are extracted and used to parse the header, and subsequent rows are processed accordingly. - If no fixed header is available and n <= 0, an error is returned indicating a logic issue.

    This method heavily relies on implicit evidence (Joinable[Input]) to ensure the input type adheres to the necessary constraints for the transformation and joining of rows.

    xs

    an iterator of inputs, where each element corresponds to a row of input data.

    n

    the number of initial rows to ignore (e.g., when rows are part of the header). This parameter is ignored if maybeHeader is defined.

    ev

    an implicit evidence parameter ensuring the input type adheres to the Joinable type class, which provides methods to combine or validate input elements during processing.

    returns

    a Try containing an iterator of parsed Row objects if the parsing succeeds, or a failure if any step of the process encounters an error (e.g., invalid header or processing logic).

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from RowProcessor[Row]

Inherited from AnyRef

Inherited from Any

Ungrouped