object RowDecoder extends GeneratedRowDecoders with DecoderCompanion[Seq[String], DecodeError, codecs.type]
Provides various instance creation and summoning methods.
The instance creation functions are important to know about, as they make the task of creating new decoders easier and more correct. There are two main families, depending on the type to decode:
decoder
: creates decoders from a function of arityXXX
and for which you need to specify a mapping parameter to row index (such as if the order in which cells are written doesn't match that of the function's parameters).ordered
: create decoders from a function of arityXXX
such that its parameters are organised in exactly the same way as CSV rows.
Note that a lot of types already have implicit instances: tuples, collections... moreover, the generics
module
can automatically derive valid instances for a lot of common scenarios.
- Source
- RowDecoder.scala
- Alphabetic
- By Inheritance
- RowDecoder
- DecoderCompanion
- Serializable
- GeneratedRowDecoders
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- macro def apply[D](implicit ev: Decoder[Seq[String], D, DecodeError, codecs.type]): Decoder[Seq[String], D, DecodeError, codecs.type]
- Definition Classes
- DecoderCompanion
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decodeCell[A](ss: Seq[String], i: Int)(implicit arg0: CellDecoder[A]): DecodeResult[A]
Decodes the cell found at the specified index of
ss
into the requested type.Decodes the cell found at the specified index of
ss
into the requested type.scala> RowDecoder.decodeCell[Int](List("abc", "123"), 1) res0: DecodeResult[Int] = Right(123) scala> RowDecoder.decodeCell[Int](List("abc", "123"), 0) res0: DecodeResult[Int] = Left(TypeError: 'abc' is not a valid Int)
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19], arg19: CellDecoder[A20], arg20: CellDecoder[A21], arg21: CellDecoder[A22]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- i17
index of the cell that should be passed as parameter number 17 of
f
- i18
index of the cell that should be passed as parameter number 18 of
f
- i19
index of the cell that should be passed as parameter number 19 of
f
- i20
index of the cell that should be passed as parameter number 20 of
f
- i21
index of the cell that should be passed as parameter number 21 of
f
- i22
index of the cell that should be passed as parameter number 22 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22")) res21: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19], arg19: CellDecoder[A20], arg20: CellDecoder[A21]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- i17
index of the cell that should be passed as parameter number 17 of
f
- i18
index of the cell that should be passed as parameter number 18 of
f
- i19
index of the cell that should be passed as parameter number 19 of
f
- i20
index of the cell that should be passed as parameter number 20 of
f
- i21
index of the cell that should be passed as parameter number 21 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21")) res20: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19], arg19: CellDecoder[A20]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- i17
index of the cell that should be passed as parameter number 17 of
f
- i18
index of the cell that should be passed as parameter number 18 of
f
- i19
index of the cell that should be passed as parameter number 19 of
f
- i20
index of the cell that should be passed as parameter number 20 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20")) res19: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- i17
index of the cell that should be passed as parameter number 17 of
f
- i18
index of the cell that should be passed as parameter number 18 of
f
- i19
index of the cell that should be passed as parameter number 19 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19")) res18: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- i17
index of the cell that should be passed as parameter number 17 of
f
- i18
index of the cell that should be passed as parameter number 18 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18")) res17: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- i17
index of the cell that should be passed as parameter number 17 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17")) res16: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- i16
index of the cell that should be passed as parameter number 16 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16")) res15: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- i15
index of the cell that should be passed as parameter number 15 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15")) res14: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- i14
index of the cell that should be passed as parameter number 14 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14")) res13: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, R](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)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- i13
index of the cell that should be passed as parameter number 13 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13")) res12: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int, i12: Int)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- i12
index of the cell that should be passed as parameter number 12 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12")) res11: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- i11
index of the cell that should be passed as parameter number 11 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11")) res10: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- i10
index of the cell that should be passed as parameter number 10 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")) res9: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, A9, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int)(f: (A1, A2, A3, A4, A5, A6, A7, A8, A9) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- i9
index of the cell that should be passed as parameter number 9 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7, 8)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9")) res8: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, A8, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int)(f: (A1, A2, A3, A4, A5, A6, A7, A8) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- i8
index of the cell that should be passed as parameter number 8 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6, 7)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8")) res7: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8))
Example: - def decoder[A1, A2, A3, A4, A5, A6, A7, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int)(f: (A1, A2, A3, A4, A5, A6, A7) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- i7
index of the cell that should be passed as parameter number 7 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4, 5, 6)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7")) res6: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7))
Example: - def decoder[A1, A2, A3, A4, A5, A6, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int)(f: (A1, A2, A3, A4, A5, A6) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- i6
index of the cell that should be passed as parameter number 6 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4, 5)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6")) res5: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6))
Example: - def decoder[A1, A2, A3, A4, A5, R](i1: Int, i2: Int, i3: Int, i4: Int, i5: Int)(f: (A1, A2, A3, A4, A5) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- i5
index of the cell that should be passed as parameter number 5 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int) scala> RowDecoder.decoder(0, 1, 2, 3, 4)(Ints.apply _).decode(Seq("1", "2", "3", "4", "5")) res4: DecodeResult[Ints] = Right(Ints(1,2,3,4,5))
Example: - def decoder[A1, A2, A3, A4, R](i1: Int, i2: Int, i3: Int, i4: Int)(f: (A1, A2, A3, A4) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- i4
index of the cell that should be passed as parameter number 4 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int) scala> RowDecoder.decoder(0, 1, 2, 3)(Ints.apply _).decode(Seq("1", "2", "3", "4")) res3: DecodeResult[Ints] = Right(Ints(1,2,3,4))
Example: - def decoder[A1, A2, A3, R](i1: Int, i2: Int, i3: Int)(f: (A1, A2, A3) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- i3
index of the cell that should be passed as parameter number 3 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int) scala> RowDecoder.decoder(0, 1, 2)(Ints.apply _).decode(Seq("1", "2", "3")) res2: DecodeResult[Ints] = Right(Ints(1,2,3))
Example: - def decoder[A1, A2, R](i1: Int, i2: Int)(f: (A1, A2) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- i2
index of the cell that should be passed as parameter number 2 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int) scala> RowDecoder.decoder(0, 1)(Ints.apply _).decode(Seq("1", "2")) res1: DecodeResult[Ints] = Right(Ints(1,2))
Example: - def decoder[A1, R](i1: Int)(f: (A1) => R)(implicit arg0: CellDecoder[A1]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
- i1
index of the cell that should be passed as parameter number 1 of
f
- f
encoding function.
- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int) scala> RowDecoder.decoder(0)(Ints.apply _).decode(Seq("1")) res0: DecodeResult[Ints] = Right(Ints(1))
Example: - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def field[A](index: Int)(implicit arg0: CellDecoder[A]): RowDecoder[A]
Provides a RowDecoder instance that decodes a single cell from each row.
Provides a RowDecoder instance that decodes a single cell from each row.
RowDecoder.field[Int](1).decode(Seq("123", "456", "789")) res1: DecodeResult[Int] = Right(456)
Example: - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def from[D](f: (Seq[String]) => Either[DecodeError, D]): Decoder[Seq[String], D, DecodeError, codecs.type]
- Definition Classes
- DecoderCompanion
- Annotations
- @inline()
- def fromPartial[D](f: PartialFunction[Seq[String], Either[DecodeError, D]])(implicit t: IsError[DecodeError]): Decoder[Seq[String], D, DecodeError, codecs.type]
- Definition Classes
- DecoderCompanion
- Annotations
- @SuppressWarnings()
- def fromUnsafe[D](f: (Seq[String]) => D)(implicit t: IsError[DecodeError]): Decoder[Seq[String], D, DecodeError, codecs.type]
- Definition Classes
- DecoderCompanion
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def oneOf[D](ds: Decoder[Seq[String], D, DecodeError, codecs.type]*)(implicit i: IsError[DecodeError]): Decoder[Seq[String], D, DecodeError, codecs.type]
- Definition Classes
- DecoderCompanion
- Annotations
- @inline()
- def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19], arg19: CellDecoder[A20], arg20: CellDecoder[A21], arg21: CellDecoder[A22]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22")) res21: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19], arg19: CellDecoder[A20], arg20: CellDecoder[A21]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21")) res20: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19], arg19: CellDecoder[A20]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20")) res19: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18], arg18: CellDecoder[A19]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19")) res18: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17], arg17: CellDecoder[A18]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18")) res17: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16], arg16: CellDecoder[A17]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17")) res16: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15], arg15: CellDecoder[A16]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16")) res15: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14], arg14: CellDecoder[A15]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15")) res14: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13], arg13: CellDecoder[A14]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14")) res13: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13,14))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12], arg12: CellDecoder[A13]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13")) res12: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12,13))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11], arg11: CellDecoder[A12]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(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> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12")) res11: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11,12))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10], arg10: CellDecoder[A11]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int, i11: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11")) res10: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10,11))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9], arg9: CellDecoder[A10]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int, i10: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")) res9: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9,10))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, A9, R](f: (A1, A2, A3, A4, A5, A6, A7, A8, A9) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8], arg8: CellDecoder[A9]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int, i9: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9")) res8: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8,9))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, A8, R](f: (A1, A2, A3, A4, A5, A6, A7, A8) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7], arg7: CellDecoder[A8]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int, i8: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7", "8")) res7: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7,8))
Example: - def ordered[A1, A2, A3, A4, A5, A6, A7, R](f: (A1, A2, A3, A4, A5, A6, A7) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6], arg6: CellDecoder[A7]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int, i7: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6", "7")) res6: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6,7))
Example: - def ordered[A1, A2, A3, A4, A5, A6, R](f: (A1, A2, A3, A4, A5, A6) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5], arg5: CellDecoder[A6]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int, i6: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5", "6")) res5: DecodeResult[Ints] = Right(Ints(1,2,3,4,5,6))
Example: - def ordered[A1, A2, A3, A4, A5, R](f: (A1, A2, A3, A4, A5) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4], arg4: CellDecoder[A5]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int, i5: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4", "5")) res4: DecodeResult[Ints] = Right(Ints(1,2,3,4,5))
Example: - def ordered[A1, A2, A3, A4, R](f: (A1, A2, A3, A4) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3], arg3: CellDecoder[A4]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int, i4: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3", "4")) res3: DecodeResult[Ints] = Right(Ints(1,2,3,4))
Example: - def ordered[A1, A2, A3, R](f: (A1, A2, A3) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2], arg2: CellDecoder[A3]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int, i3: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2", "3")) res2: DecodeResult[Ints] = Right(Ints(1,2,3))
Example: - def ordered[A1, A2, R](f: (A1, A2) => R)(implicit arg0: CellDecoder[A1], arg1: CellDecoder[A2]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int, i2: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1", "2")) res1: DecodeResult[Ints] = Right(Ints(1,2))
Example: - def ordered[A1, R](f: (A1) => R)(implicit arg0: CellDecoder[A1]): RowDecoder[R]
Creates a new RowDecoder from the specified function.
Creates a new RowDecoder from the specified function.
Cells are mapped to arguments of
f
in the order they are found.- Definition Classes
- GeneratedRowDecoders
scala> case class Ints(i1: Int) scala> RowDecoder.ordered(Ints.apply _).decode(Seq("1")) res0: DecodeResult[Ints] = Right(Ints(1))
Example: - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()