Class

framian.csv.CsvFormat

Partial

Related Doc: package CsvFormat

Permalink

case class Partial(separator: Option[String] = None, quote: Option[String] = None, quoteEscape: Option[String] = None, empty: Option[String] = None, invalid: Option[String] = None, header: Option[Boolean] = None, rowDelim: Option[CsvRowDelim] = None, allowRowDelimInQuotes: Boolean = true) extends GuessCsvFormat with Product with Serializable

Source
CsvFormat.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Partial
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GuessCsvFormat
  7. CsvFormatStrategy
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Partial(separator: Option[String] = None, quote: Option[String] = None, quoteEscape: Option[String] = None, empty: Option[String] = None, invalid: Option[String] = None, header: Option[Boolean] = None, rowDelim: Option[CsvRowDelim] = None, allowRowDelimInQuotes: Boolean = true)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to any2stringadd[Partial] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Partial, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to ArrowAssoc[Partial] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. val allowRowDelimInQuotes: Boolean

    Permalink
  7. def apply(str: String): CsvFormat

    Permalink

    Performs a very naive guess of the CsvFormat.

    Performs a very naive guess of the CsvFormat. This uses weighted frequencies of occurences of common separators, row-delimiters, quotes, quote escapes, etc. and simply selects the max for each. For empty values, it uses the frequency of the the possible empty values within the cells.

    This supports:

    * \r\n and \n as row delimiters, * ',', '\t', ';', and '|' as field delimiters, * '"', and as quote delimiter, * the quote delimiter or \ for quote escapes, * , '?', '-', 'N/A', and 'NA' as empty values, and * 'N/M' and 'NM' as invalid values.

    Headers are guessed by using the cosine similarity of the frequency of characters (except quotes/field delimiters) between the first row and all subsequent rows. Values below 0.5 will result in a header being inferred.

    Definition Classes
    PartialGuessCsvFormat
  8. def apply(reader: Reader): (CsvFormat, Reader)

    Permalink

    Makes a guess at the format of the CSV accessed by reader.

    Makes a guess at the format of the CSV accessed by reader. This returns the format, as well as the a new pushback reader to be used in place of reader. The original reader will have some data read out of it. The returned reader will contain all the original reader's data.

    Definition Classes
    GuessCsvFormat
  9. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val empty: Option[String]

    Permalink
  12. def ensuring(cond: (Partial) ⇒ Boolean, msg: ⇒ Any): Partial

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to Ensuring[Partial] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Partial) ⇒ Boolean): Partial

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to Ensuring[Partial] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Partial

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to Ensuring[Partial] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Partial

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to Ensuring[Partial] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to StringFormat[Partial] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hasHeader(chunk: String, rowDelim: String, separator: String, quote: String): Boolean

    Permalink
  21. val header: Option[Boolean]

    Permalink
  22. val invalid: Option[String]

    Permalink
  23. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. val quote: Option[String]

    Permalink
  28. val quoteEscape: Option[String]

    Permalink
  29. val rowDelim: Option[CsvRowDelim]

    Permalink
  30. val separator: Option[String]

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

    Permalink
    Definition Classes
    AnyRef
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withEmpty(empty: String): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  36. def withHeader(header: Boolean): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  37. def withInvalid(invalid: String): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  38. def withQuote(quote: String): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  39. def withQuoteEscape(quoteEscape: String): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  40. def withRowDelim(rowDelim: String): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  41. def withRowDelim(rowDelim: CsvRowDelim): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  42. def withSeparator(separator: String): Partial

    Permalink
    Definition Classes
    PartialCsvFormatStrategy
  43. def [B](y: B): (Partial, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Partial to ArrowAssoc[Partial] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GuessCsvFormat

Inherited from CsvFormatStrategy

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Partial to any2stringadd[Partial]

Inherited by implicit conversion StringFormat from Partial to StringFormat[Partial]

Inherited by implicit conversion Ensuring from Partial to Ensuring[Partial]

Inherited by implicit conversion ArrowAssoc from Partial to ArrowAssoc[Partial]

Ungrouped