trait HeaderDecoder[A] extends Serializable
Provides support for using header values rather than row indexes for decoding.
When decoding CSV data, if the CsvConfiguration indicates the presence of a header, it will be passed to fromHeader, and the resulting RowDecoder will be used.
The default behaviour is always to rely on indexes (that is, any instance of RowDecoder that might be available), but you can create more useful HeaderDecoder instances through the companion object.
- Self Type
- HeaderDecoder[A]
- Source
- HeaderDecoder.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- HeaderDecoder
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def fromHeader(header: Seq[String]): DecodeResult[RowDecoder[A]]
- abstract def noHeader: RowDecoder[A]
Concrete Value Members
- def map[B](f: (A) => B): HeaderDecoder[B]
- def ~[B](that: HeaderDecoder[B])(implicit zippable: Zippable[A, B]): HeaderDecoder[Out]
Combines two header decoders creating a tupled version that will decode the results from both.
Combines two header decoders creating a tupled version that will decode the results from both. The combination will preserve the order of the merge in the case that no headers are detected.