final class CsvSinkOps[A] extends VersionSpecificCsvSinkOps[A]
Provides useful syntax for types that have implicit instances of CsvSink in scope.
The most common use case is to turn a value into a CsvWriter:
val f: java.io.File = ??? f.asCsvWriter[List[Int]](',', true)
A slightly less common use case is encode an entire collection to CSV:
val f: java.io.File = ??? f.writeCsv[List[Int]](List(List(1, 2, 3), List(4, 5, 6)), ',', true)
- Source
- CsvSinkOps.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CsvSinkOps
- VersionSpecificCsvSinkOps
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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
- val a: A
- def asCsvWriter[B](conf: CsvConfiguration)(implicit arg0: HeaderEncoder[B], e: WriterEngine): CsvWriter[B]
Shorthand for CsvSink.writer.
- 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()
- 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()
- def writeCsv[B](rows: IterableOnce[B], conf: CsvConfiguration)(implicit arg0: HeaderEncoder[B], e: WriterEngine, sa: CsvSink[A]): Unit
- Definition Classes
- VersionSpecificCsvSinkOps
Deprecated Value Members
- def asCsvWriter[B](sep: Char, header: String*)(implicit arg0: HeaderEncoder[B], e: WriterEngine): CsvWriter[B]
- Annotations
- @deprecated
- Deprecated
(Since version 0.1.18) use asCsvWriter(CsvConfiguration) instead
- def writeCsv[B](rows: IterableOnce[B], sep: Char, header: String*)(implicit arg0: HeaderEncoder[B], e: WriterEngine, sa: CsvSink[A]): Unit
- Definition Classes
- VersionSpecificCsvSinkOps
- Annotations
- @deprecated
- Deprecated
(Since version 0.1.18) use writeCsv(rows, CsvConfiguration) instead