Class/Object

org.bitlap.csv

WriterBuilder

Related Docs: object WriterBuilder | package csv

Permalink

class WriterBuilder[T] extends AnyRef

Builder to create a custom Csv Encoder.

Version

1.0,2022/4/30

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WriterBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WriterBuilder()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. macro def convert(ts: List[T])(implicit format: CsvFormat): String

    Permalink

    Convert the sequence of Scala case class to CSV string.

    Convert the sequence of Scala case class to CSV string.

    ts

    The sequence of Scala case class.

    format

    For processing CSV in the specified format.

    returns

    The string of all CSV lines.

  7. macro def convert(t: T)(implicit format: CsvFormat): String

    Permalink

    Create a custom builder for converting this scala value to CSV line string.

    Create a custom builder for converting this scala value to CSV line string.

    t

    The value of Scala case class.

    format

    For processing CSV in the specified format.

    returns

    The string of one CSV line.

  8. macro def convertTo(ts: List[T], file: File)(implicit format: CsvFormat): Boolean

    Permalink

    Convert the sequence of Scala case class to CSV string and write to file.

    Convert the sequence of Scala case class to CSV string and write to file.

    ts

    The sequence of Scala case class.

    file

    File to save CSV string.

    format

    For processing CSV in the specified format. Passing anonymous objects is not supported.

    returns

    The string of all CSV lines.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  17. macro def setField[SF](scalaField: (T) ⇒ SF, value: (SF) ⇒ String): WriterBuilder[T]

    Permalink

    Convert this CSV column string to any Scala types.

    Convert this CSV column string to any Scala types.

    SF

    The field type, generally, it is not necessary to specify, but it is safer if specify.

    scalaField

    The field in scala case class.

    value

    This function specifies how you want to convert this field to a CSV string.

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped