Provides an instance of CellDecoder[Either[A, B]] for any type A and B that have instances of
CellDecoder.
Provides an instance of CellDecoder[Either[A, B]] for any type A and B that have instances of
CellDecoder.
// Left value scala> CellDecoder[Either[Int, Boolean]].decode("123") res1: DecodeResult[Either[Int, Boolean]] = Right(Left(123)) // Right value scala> CellDecoder[Either[Int, Boolean]].decode("true") res2: DecodeResult[Either[Int, Boolean]] = Right(Right(true))
Provides an instance of CellDecoder[Option[A]] for any type A that has an instance of CellDecoder.
Provides an instance of CellDecoder[Option[A]] for any type A that has an instance of CellDecoder.
// Non-empty value scala> CellDecoder[Option[Int]].decode("123") res1: DecodeResult[Option[Int]] = Right(Some(123)) // Empty value scala> CellDecoder[Option[Int]].decode("") res2: DecodeResult[Option[Int]] = Right(None)
Provides an instance of CellEncoder[Option[A]] for any type A that has an instance of CellEncoder.
Provides an instance of CellEncoder[Option[A]] for any type A that has an instance of CellEncoder.
Some encoding scala> CellEncoder[Option[Int]].encode(Some(123)) res1: String = 123 // None encoding scala> CellEncoder[Option[Int]].encode(None) res2: String = ""
Provides an instance of CellEncoder[Either[A, B]] for any type A and B that have instances of
CellEncoder.
Provides an instance of CellEncoder[Either[A, B]] for any type A and B that have instances of
CellEncoder.
// Left encoding scala> CellEncoder[Either[Int, Boolean]].encode(Left(123)) res1: String = 123 // Right encoding scala> CellEncoder[Either[Int, Boolean]].encode(Right(true)) res2: String = true
Turns a CellDecoder into a RowDecoder, for rows that contain a single value.
Turns a CellDecoder into a RowDecoder, for rows that contain a single value.
This provides default behaviour for RowDecoder.field by decoding the first cell.
RowDecoder[Int].decode(Seq("123", "456", "789")) res1: DecodeResult[Int] = Right(123)
Turns a CellEncoder into a RowEncoder, for rows that contain a single value.
Turns a CellEncoder into a RowEncoder, for rows that contain a single value.
scala> RowEncoder[Int].encode(123) res1: Seq[String] = List(123)
Turns existing StringDecoder instances into CellDecoder ones.
Turns existing StringDecoder instances into CellDecoder ones.
This provides support for most basic Scala types.
scala> CellDecoder[Int].decode("123") res1: DecodeResult[Int] = Right(123)
Turns existing StringEncoder instances into CellEncoder ones.
Turns existing StringEncoder instances into CellEncoder ones.
This provides support for most basic Scala types.
CellEncoder[Int].encode(123) res1: String = 123
Provides a RowDecoder instance for all types that have an HasBuilder, provided the inner type has a
CellDecoder.
Provides a RowDecoder instance for all types that have an HasBuilder, provided the inner type has a
CellDecoder.
RowDecoder[List[Int]].decode(Seq("123", "456", "789")) res1: DecodeResult[List[Int]] = Right(List(123, 456, 789))
Provides a RowEncoder instance for all traversable collections.
Provides a RowEncoder instance for all traversable collections.
List, for example:
scala> RowEncoder[List[Int]].encode(List(123, 456, 789)) res1: Seq[String] = List(123, 456, 789)
Provides an instance of RowDecoder for Tuple1, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple1, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple1[Int]].decode(Seq("1")) res0: DecodeResult[Tuple1[Int]] = Right((1))
Provides an instance of RowDecoder for Tuple10, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple10, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple10[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10")) res9: DecodeResult[Tuple10[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10))
Provides an instance of RowDecoder for Tuple11, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple11, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple11[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11")) res10: DecodeResult[Tuple11[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11))
Provides an instance of RowDecoder for Tuple12, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple12, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple12[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12")) res11: DecodeResult[Tuple12[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12))
Provides an instance of RowDecoder for Tuple13, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple13, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple13[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13")) res12: DecodeResult[Tuple13[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13))
Provides an instance of RowDecoder for Tuple14, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple14, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple14[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14")) res13: DecodeResult[Tuple14[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14))
Provides an instance of RowDecoder for Tuple15, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple15, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple15[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15")) res14: DecodeResult[Tuple15[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15))
Provides an instance of RowDecoder for Tuple16, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple16, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple16[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16")) res15: DecodeResult[Tuple16[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16))
Provides an instance of RowDecoder for Tuple17, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple17, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple17[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17")) res16: DecodeResult[Tuple17[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17))
Provides an instance of RowDecoder for Tuple18, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple18, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple18[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18")) res17: DecodeResult[Tuple18[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18))
Provides an instance of RowDecoder for Tuple19, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple19, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple19[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19")) res18: DecodeResult[Tuple19[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19))
Provides an instance of RowDecoder for Tuple2, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple2, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple2[Int, Int]].decode(Seq("1", "2")) res1: DecodeResult[Tuple2[Int, Int]] = Right((1,2))
Provides an instance of RowDecoder for Tuple20, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple20, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple20[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20")) res19: DecodeResult[Tuple20[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20))
Provides an instance of RowDecoder for Tuple21, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple21, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple21[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].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[Tuple21[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21))
Provides an instance of RowDecoder for Tuple22, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple22, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple22[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].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[Tuple22[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22))
Provides an instance of RowDecoder for Tuple3, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple3, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple3[Int, Int, Int]].decode(Seq("1", "2", "3")) res2: DecodeResult[Tuple3[Int, Int, Int]] = Right((1,2,3))
Provides an instance of RowDecoder for Tuple4, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple4, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple4[Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4")) res3: DecodeResult[Tuple4[Int, Int, Int, Int]] = Right((1,2,3,4))
Provides an instance of RowDecoder for Tuple5, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple5, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple5[Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5")) res4: DecodeResult[Tuple5[Int, Int, Int, Int, Int]] = Right((1,2,3,4,5))
Provides an instance of RowDecoder for Tuple6, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple6, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple6[Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6")) res5: DecodeResult[Tuple6[Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6))
Provides an instance of RowDecoder for Tuple7, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple7, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple7[Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7")) res6: DecodeResult[Tuple7[Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7))
Provides an instance of RowDecoder for Tuple8, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple8, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple8[Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8")) res7: DecodeResult[Tuple8[Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8))
Provides an instance of RowDecoder for Tuple9, provided all internal types have an instance of CellDecoder.
Provides an instance of RowDecoder for Tuple9, provided all internal types have an instance of CellDecoder.
scala> RowDecoder[Tuple9[Int, Int, Int, Int, Int, Int, Int, Int, Int]].decode(Seq("1", "2", "3", "4", "5", "6", "7", "8", "9")) res8: DecodeResult[Tuple9[Int, Int, Int, Int, Int, Int, Int, Int, Int]] = Right((1,2,3,4,5,6,7,8,9))
Provides an instance of RowEncoder for Tuple1, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple1, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple1[Int]].encode(Tuple1(1)) res0: Seq[String] = List(1)
Provides an instance of RowEncoder for Tuple10, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple10, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple10[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) res9: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Provides an instance of RowEncoder for Tuple11, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple11, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple11[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)) res10: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
Provides an instance of RowEncoder for Tuple12, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple12, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple12[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)) res11: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
Provides an instance of RowEncoder for Tuple13, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple13, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple13[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)) res12: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
Provides an instance of RowEncoder for Tuple14, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple14, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple14[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)) res13: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
Provides an instance of RowEncoder for Tuple15, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple15, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple15[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) res14: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
Provides an instance of RowEncoder for Tuple16, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple16, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple16[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)) res15: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
Provides an instance of RowEncoder for Tuple17, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple17, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple17[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)) res16: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
Provides an instance of RowEncoder for Tuple18, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple18, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple18[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)) res17: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
Provides an instance of RowEncoder for Tuple19, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple19, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple19[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)) res18: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
Provides an instance of RowEncoder for Tuple2, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple2, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple2[Int, Int]].encode((1, 2)) res1: Seq[String] = WrappedArray(1, 2)
Provides an instance of RowEncoder for Tuple20, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple20, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple20[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)) res19: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
Provides an instance of RowEncoder for Tuple21, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple21, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple21[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)) res20: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
Provides an instance of RowEncoder for Tuple22, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple22, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple22[Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)) res21: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
Provides an instance of RowEncoder for Tuple3, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple3, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple3[Int, Int, Int]].encode((1, 2, 3)) res2: Seq[String] = WrappedArray(1, 2, 3)
Provides an instance of RowEncoder for Tuple4, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple4, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple4[Int, Int, Int, Int]].encode((1, 2, 3, 4)) res3: Seq[String] = WrappedArray(1, 2, 3, 4)
Provides an instance of RowEncoder for Tuple5, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple5, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple5[Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5)) res4: Seq[String] = WrappedArray(1, 2, 3, 4, 5)
Provides an instance of RowEncoder for Tuple6, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple6, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple6[Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6)) res5: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6)
Provides an instance of RowEncoder for Tuple7, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple7, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple7[Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7)) res6: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7)
Provides an instance of RowEncoder for Tuple8, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple8, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple8[Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8)) res7: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8)
Provides an instance of RowEncoder for Tuple9, provided all internal types have an instance of CellEncoder.
Provides an instance of RowEncoder for Tuple9, provided all internal types have an instance of CellEncoder.
scala> RowEncoder[Tuple9[Int, Int, Int, Int, Int, Int, Int, Int, Int]].encode((1, 2, 3, 4, 5, 6, 7, 8, 9)) res8: Seq[String] = WrappedArray(1, 2, 3, 4, 5, 6, 7, 8, 9)
Defines default instances for CellEncoder, CellDecoder, RowEncoder and RowDecoder.