trait CsvRenderers extends AnyRef
Trait to define various renderers for rendering instance of case classes (with their various parameters), containers (Seq and Option), etc. to CSV output.
CONSIDER a mechanism to ensure that objects involving case classes are presented in the same order as specified by the header.
- Alphabetic
- By Inheritance
- CsvRenderers
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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 optionRenderer[T](implicit arg0: CsvRenderer[T], ca: CsvAttributes): CsvRenderer[Option[T]]
Method to return a CsvRenderer[ Option[T] ].
Method to return a CsvRenderer[ Option[T] ].
- T
the underlying type of the first parameter of the input to the render method.
- returns
a CsvRenderer[ Option[T] ].
- def renderer1[P1, T <: Product](construct: (P1) => T)(implicit arg0: CsvRenderer[P1], arg1: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 1-ary Product and which is based on a function to convert a P into a T.
Method to return a CsvRenderer[T] where T is a 1-ary Product and which is based on a function to convert a P into a T.
NOTE: be careful using this particular method it only applies where T is a 1-tuple (e.g. a case class with one field -- not common).
- P1
the type of the (single) field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function P => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a HierarchicalRenderer[T].
- def renderer10[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: CsvRenderer[P7], arg7: CsvRenderer[P8], arg8: CsvRenderer[P9], arg9: CsvRenderer[P10], arg10: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 10-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 10-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- P7
the type of the seventh field of the Product type T.
- P8
the type of the eighth field of the Product type T.
- P9
the type of the ninth field of the Product type T.
- P10
the type of the tenth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer11[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: CsvRenderer[P7], arg7: CsvRenderer[P8], arg8: CsvRenderer[P9], arg9: CsvRenderer[P10], arg10: CsvRenderer[P11], arg11: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 11-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 11-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- P7
the type of the seventh field of the Product type T.
- P8
the type of the eighth field of the Product type T.
- P9
the type of the ninth field of the Product type T.
- P10
the type of the tenth field of the Product type T.
- P11
the type of the eleventh field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer12[P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: CsvRenderer[P7], arg7: CsvRenderer[P8], arg8: CsvRenderer[P9], arg9: CsvRenderer[P10], arg10: CsvRenderer[P11], arg11: CsvRenderer[P12], arg12: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 12-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 12-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- P7
the type of the seventh field of the Product type T.
- P8
the type of the eighth field of the Product type T.
- P9
the type of the ninth field of the Product type T.
- P10
the type of the tenth field of the Product type T.
- P11
the type of the eleventh field of the Product type T.
- P12
the type of the twelfth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer2[P1, P2, T <: Product](construct: (P1, P2) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 2-ary Product and which is based on a function to convert a (P1,P2) into a T.
Method to return a CsvRenderer[T] where T is a 2-ary Product and which is based on a function to convert a (P1,P2) into a T.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer3[P1, P2, P3, T <: Product](construct: (P1, P2, P3) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 3-ary Product and which is based on a function to convert a (P1,P2,P3) into a T.
Method to return a CsvRenderer[T] where T is a 3-ary Product and which is based on a function to convert a (P1,P2,P3) into a T.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer4[P1, P2, P3, P4, T <: Product](construct: (P1, P2, P3, P4) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 4-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 4-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer5[P1, P2, P3, P4, P5, T <: Product](construct: (P1, P2, P3, P4, P5) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 5-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 5-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer6[P1, P2, P3, P4, P5, P6, T <: Product](construct: (P1, P2, P3, P4, P5, P6) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 6-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 6-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer7[P1, P2, P3, P4, P5, P6, P7, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: CsvRenderer[P7], arg7: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 7-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 7-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- P7
the type of the seventh field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6,P7) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer8[P1, P2, P3, P4, P5, P6, P7, P8, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: CsvRenderer[P7], arg7: CsvRenderer[P8], arg8: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 8-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 8-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- P7
the type of the seventh field of the Product type T.
- P8
the type of the eighth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6,P7,P8) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def renderer9[P1, P2, P3, P4, P5, P6, P7, P8, P9, T <: Product](construct: (P1, P2, P3, P4, P5, P6, P7, P8, P9) => T)(implicit arg0: CsvRenderer[P1], arg1: CsvRenderer[P2], arg2: CsvRenderer[P3], arg3: CsvRenderer[P4], arg4: CsvRenderer[P5], arg5: CsvRenderer[P6], arg6: CsvRenderer[P7], arg7: CsvRenderer[P8], arg8: CsvRenderer[P9], arg9: ClassTag[T], csvAttributes: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] where T is a 9-ary Product and which is based on the given "construct" function.
Method to return a CsvRenderer[T] where T is a 9-ary Product and which is based on the given "construct" function.
- P1
the type of the first field of the Product type T.
- P2
the type of the second field of the Product type T.
- P3
the type of the third field of the Product type T.
- P4
the type of the fourth field of the Product type T.
- P5
the type of the fifth field of the Product type T.
- P6
the type of the sixth field of the Product type T.
- P7
the type of the seventh field of the Product type T.
- P8
the type of the eighth field of the Product type T.
- P9
the type of the ninth field of the Product type T.
- T
the underlying type of the first parameter of the input to the render method.
- construct
a function (P1,P2,P3,P4,P5,P6,P7,P8,P9) => T, usually the apply method of a case class. The sole purpose of this function is for type inference--it is never actually invoked.
- returns
a CsvRenderer[T].
- def sequenceRenderer[T](implicit arg0: CsvRenderer[T], ca: CsvAttributes): CsvRenderer[Seq[T]]
Method to return a CsvRenderer[ Seq[T] ].
Method to return a CsvRenderer[ Seq[T] ].
TEST
- T
the underlying type of the first parameter of the input to the render method.
- returns
a CsvRenderer[ Seq[T] ]
- def skipRenderer[T](alignment: Int = 1)(implicit ca: CsvAttributes): CsvRenderer[T]
Method to return a CsvRenderer[T] which does not output a T at all, only a number of delimiters according to the value of alignment.
Method to return a CsvRenderer[T] which does not output a T at all, only a number of delimiters according to the value of alignment.
- T
the type of the parameter to the render method.
- alignment
(defaults to 1): one more than the number of delimiters to output. If you are skipping a Product (such as a case class instance), then you should carefully count up how many (nested) elements to skip. So, for example, if you are skipping a Product with three members, you would set alignment = 3, even though you only want to output 2 delimiters.
- returns
a CsvRenderer[T].
- 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()