net.tixxit.delimited

PartialFormat

case class PartialFormat(separator: Option[String] = scala.None, quote: Option[String] = scala.None, quoteEscape: Option[String] = scala.None, rowDelim: Option[RowDelim] = scala.None, allowRowDelimInQuotes: Option[Boolean] = scala.None, separatorCandidates: Candidates[String] = ..., quoteCandidates: Candidates[String] = ..., quoteEscapeCandidates: Candidates[(String) ⇒ String] = ..., rowDelimCandidates: Candidates[RowDelim] = ..., allowRowDelimInQuoteCandidates: Candidates[Boolean] = ..., parseBudget: Option[Int] = scala.None) extends GuessDelimitedFormat with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PartialFormat
  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 PartialFormat(separator: Option[String] = scala.None, quote: Option[String] = scala.None, quoteEscape: Option[String] = scala.None, rowDelim: Option[RowDelim] = scala.None, allowRowDelimInQuotes: Option[Boolean] = scala.None, separatorCandidates: Candidates[String] = ..., quoteCandidates: Candidates[String] = ..., quoteEscapeCandidates: Candidates[(String) ⇒ String] = ..., rowDelimCandidates: Candidates[RowDelim] = ..., allowRowDelimInQuoteCandidates: Candidates[Boolean] = ..., parseBudget: Option[Int] = scala.None)

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 allowRowDelimInQuoteCandidates: Candidates[Boolean]

  7. val allowRowDelimInQuotes: Option[Boolean]

  8. 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.

    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.

    Definition Classes
    PartialFormatGuessDelimitedFormat
  9. 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
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def candidates(str: String): Stream[Weighted[DelimitedFormat]]

    Returns a stream of weighted candidate DelimitedFormats, in order of the belief that they'll parse str successfully.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  20. val parseBudget: Option[Int]

  21. val quote: Option[String]

  22. val quoteCandidates: Candidates[String]

  23. val quoteEscape: Option[String]

  24. val quoteEscapeCandidates: Candidates[(String) ⇒ String]

  25. def rank(results: Vector[Either[DelimitedError, Row]]): Double

    Rank parse results based on some super subjective criteria.

    Rank parse results based on some super subjective criteria. We prefer results whose rows generally have a uniform number of columns, but aren't too thin, either column-wise or row-wise.

  26. val rowDelim: Option[RowDelim]

  27. val rowDelimCandidates: Candidates[RowDelim]

  28. val separator: Option[String]

  29. val separatorCandidates: Candidates[String]

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def withQuote(quote: String): PartialFormat

    Definition Classes
    PartialFormatDelimitedFormatStrategy
  35. def withQuoteEscape(quoteEscape: String): PartialFormat

    Definition Classes
    PartialFormatDelimitedFormatStrategy
  36. def withRowDelim(rowDelim: String): PartialFormat

    Definition Classes
    PartialFormatDelimitedFormatStrategy
  37. def withRowDelim(rowDelim: RowDelim): PartialFormat

    Definition Classes
    PartialFormatDelimitedFormatStrategy
  38. def withRowDelimInQuotes(allowRowDelimInQuotes: Boolean): PartialFormat

    Definition Classes
    PartialFormatDelimitedFormatStrategy
  39. def withSeparator(separator: String): PartialFormat

    Definition Classes
    PartialFormatDelimitedFormatStrategy

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