Provides instance summoning and creation methods for HeaderDecoder.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
HeaderDecoder.type
Members list
Value members
Concrete methods
Summons an implicit instance of HeaderDecoder if one can be found, fails compilation otherwise.
Summons an implicit instance of HeaderDecoder if one can be found, fails compilation otherwise.
Attributes
Inherited methods
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int, i17: Int, i18: Int, i19: Int, i20: Int, i21: Int, i22: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18", "f19", "f20", "f21", "f22")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, f22\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22".asCsvReader[Foo](rfc.withHeader).next() res21: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int, i17: Int, i18: Int, i19: Int, i20: Int, i21: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18", "f19", "f20", "f21")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21".asCsvReader[Foo](rfc.withHeader).next() res20: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int, i17: Int, i18: Int, i19: Int, i20: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18", "f19", "f20")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20".asCsvReader[Foo](rfc.withHeader).next() res19: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int, i17: Int, i18: Int, i19: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18", "f19")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19".asCsvReader[Foo](rfc.withHeader).next() res18: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int, i17: Int, i18: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17", "f18")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18".asCsvReader[Foo](rfc.withHeader).next() res17: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int, i17: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16", "f17")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17".asCsvReader[Foo](rfc.withHeader).next() res16: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int, i16: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "f16")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16".asCsvReader[Foo](rfc.withHeader).next() res15: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int, i15: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15".asCsvReader[Foo](rfc.withHeader).next() res14: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int, i14: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14".asCsvReader[Foo](rfc.withHeader).next() res13: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13,14))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int, i13: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13".asCsvReader[Foo](rfc.withHeader).next() res12: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12,13))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12".asCsvReader[Foo](rfc.withHeader).next() res11: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11,12))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11".asCsvReader[Foo](rfc.withHeader).next() res10: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10,11))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9, f10\n1, 2, 3, 4, 5, 6, 7, 8, 9, 10".asCsvReader[Foo](rfc.withHeader).next() res9: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9,10))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8, f9\n1, 2, 3, 4, 5, 6, 7, 8, 9".asCsvReader[Foo](rfc.withHeader).next() res8: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8,9))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7, f8\n1, 2, 3, 4, 5, 6, 7, 8".asCsvReader[Foo](rfc.withHeader).next() res7: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7,8))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6", "f7")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6, f7\n1, 2, 3, 4, 5, 6, 7".asCsvReader[Foo](rfc.withHeader).next() res6: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6,7))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5", "f6")(Foo.apply) scala> "f1, f2, f3, f4, f5, f6\n1, 2, 3, 4, 5, 6".asCsvReader[Foo](rfc.withHeader).next() res5: ReadResult[Foo] = Right(Foo(1,2,3,4,5,6))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4", "f5")(Foo.apply) scala> "f1, f2, f3, f4, f5\n1, 2, 3, 4, 5".asCsvReader[Foo](rfc.withHeader).next() res4: ReadResult[Foo] = Right(Foo(1,2,3,4,5))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int, i4: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3", "f4")(Foo.apply) scala> "f1, f2, f3, f4\n1, 2, 3, 4".asCsvReader[Foo](rfc.withHeader).next() res3: ReadResult[Foo] = Right(Foo(1,2,3,4))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int, i3: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2", "f3")(Foo.apply) scala> "f1, f2, f3\n1, 2, 3".asCsvReader[Foo](rfc.withHeader).next() res2: ReadResult[Foo] = Right(Foo(1,2,3))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int, i2: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1", "f2")(Foo.apply) scala> "f1, f2\n1, 2".asCsvReader[Foo](rfc.withHeader).next() res1: ReadResult[Foo] = Right(Foo(1,2))
- Inherited from:
- GeneratedHeaderDecoders
Creates a new HeaderDecoder from the specified field list and function.
Creates a new HeaderDecoder from the specified field list and function.
Attributes
- Example
-
scala> import kantan.csv.ops._ scala> case class Foo(i1: Int) scala> implicit val decoder: HeaderDecoder[Foo] = HeaderDecoder.decoder("f1")(Foo.apply) scala> "f1\n1".asCsvReader[Foo](rfc.withHeader).next() res0: ReadResult[Foo] = Right(Foo(1))
- Inherited from:
- GeneratedHeaderDecoders
Implicits
Implicits
When no HeaderDecoder is available, fallback on whatever instance of RowDecoder is in scope.
When no HeaderDecoder is available, fallback on whatever instance of RowDecoder is in scope.