Position

info.fingo.spata.Position
final case class Position(row: Int, line: Int)

Representation of location of record in source data.

rowNum is record counter. It start with 1 for data, with header row having number 0. It differs from lineNum for sources with header or fields containing line breaks.

lineNum is the last line in source data which content is used to parse a record

  • in other words it is the number of lines consumed so far to load a record. It starts with 1, including header line - first data record has typically line number 2. There may be many lines per record when some fields contain line breaks. New line is interpreted independently from CSV record separator, as the standard platform EOL character sequence.

Value parameters

line

the line number

row

the row number

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product