net.tixxit.delimited.DelimitedFormat

Partial

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

Linear Supertypes
Serializable, Serializable, Product, Equals, GuessDelimitedFormat, DelimitedFormatStrategy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Partial
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GuessDelimitedFormat
  7. DelimitedFormatStrategy
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val allowRowDelimInQuotes: Boolean

  7. def apply(str: String): DelimitedFormat

    Performs a very naive guess of the DelimitedFormat.

    Performs a very naive guess of the DelimitedFormat. 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
    PartialGuessDelimitedFormat
  8. def apply(reader: Reader): (DelimitedFormat, Reader)

    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
    GuessDelimitedFormat
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

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

  16. val header: Option[Boolean]

  17. val invalid: Option[String]

  18. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val quote: Option[String]

  23. val quoteEscape: Option[String]

  24. val rowDelim: Option[RowDelim]

  25. val separator: Option[String]

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

    Definition Classes
    AnyRef
  27. final def wait(): Unit

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

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

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

    Definition Classes
    PartialDelimitedFormatStrategy
  31. def withHeader(header: Boolean): Partial

    Definition Classes
    PartialDelimitedFormatStrategy
  32. def withInvalid(invalid: String): Partial

    Definition Classes
    PartialDelimitedFormatStrategy
  33. def withQuote(quote: String): Partial

    Definition Classes
    PartialDelimitedFormatStrategy
  34. def withQuoteEscape(quoteEscape: String): Partial

    Definition Classes
    PartialDelimitedFormatStrategy
  35. def withRowDelim(rowDelim: String): Partial

    Definition Classes
    PartialDelimitedFormatStrategy
  36. def withRowDelim(rowDelim: RowDelim): Partial

    Definition Classes
    PartialDelimitedFormatStrategy
  37. def withSeparator(separator: String): Partial

    Definition Classes
    PartialDelimitedFormatStrategy

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GuessDelimitedFormat

Inherited from DelimitedFormatStrategy

Inherited from AnyRef

Inherited from Any

Ungrouped