HeaderDecoder

kantan.csv.HeaderDecoder
See theHeaderDecoder companion object
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.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait HeaderCodec[A]
Self type

Members list

Value members

Abstract methods

Concrete methods

def map[B](f: A => B): HeaderDecoder[B]
Implicitly added by enrichedHeaderDecoder0
Implicitly added by enrichedHeaderDecoder1
def ~[B](that: HeaderDecoder[B])(implicit zippable: Zippable[A, B]): HeaderDecoder[zippable.Out]

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.

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.

Attributes

Concrete fields

Implicitly added by enrichedHeaderDecoder0
Implicitly added by enrichedHeaderDecoder1