Class/Object

com.eharmony.aloha.semantics.compiled.plugin.csv

CsvLines

Related Docs: object CsvLines | package csv

Permalink

case class CsvLines(indices: Map[String, Int], enums: Map[String, Enum] = Map.empty, fs: String = "\t", ifs: String = ",", missingData: (String) ⇒ Boolean = EmptyStringIsMissing, errorOnOptMissingField: Boolean = false, errorOnOptMissingEnum: Boolean = false) extends Product with Serializable

A class capable of efficiently creating CsvLine objects.

indices

a mapping from field name to field index (0-based)

enums

a mapping from field name to emulated Enum type.

fs

field separator (between fields)

ifs

intra-field separator (within fields, for use in sequence data)

missingData

a function that determines if the data in an optional field is considered missing

errorOnOptMissingField

should an error occur when an optional field is request for a non-existent column name.

errorOnOptMissingEnum

should an error occur when an optional enum field is request for a column not associated with any enum.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CsvLines
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CsvLines(indices: Map[String, Int], enums: Map[String, Enum] = Map.empty, fs: String = "\t", ifs: String = ",", missingData: (String) ⇒ Boolean = EmptyStringIsMissing, errorOnOptMissingField: Boolean = false, errorOnOptMissingEnum: Boolean = false)

    Permalink

    indices

    a mapping from field name to field index (0-based)

    enums

    a mapping from field name to emulated Enum type.

    fs

    field separator (between fields)

    ifs

    intra-field separator (within fields, for use in sequence data)

    missingData

    a function that determines if the data in an optional field is considered missing

    errorOnOptMissingField

    should an error occur when an optional field is request for a non-existent column name.

    errorOnOptMissingEnum

    should an error occur when an optional enum field is request for a column not associated with any enum.

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. def apply(first: String, rest: String*): Vector[CsvLineImpl]

    Permalink

    Annotations
    @varargs()
  5. def apply(s: String): CsvLineImpl

    Permalink

  6. def apply(t: Iterator[String]): Iterator[CsvLineImpl]

    Permalink

  7. def apply[Repr, That](t: GenTraversableLike[String, Repr])(implicit cbf: CanBuildFrom[Repr, CsvLine, That]): That

    Permalink

    Generate a

  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val enums: Map[String, Enum]

    Permalink

    a mapping from field name to emulated Enum type.

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

    Permalink
    Definition Classes
    AnyRef
  12. val errorOnOptMissingEnum: Boolean

    Permalink

    should an error occur when an optional enum field is request for a column not associated with any enum.

  13. val errorOnOptMissingField: Boolean

    Permalink

    should an error occur when an optional field is request for a non-existent column name.

  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val fs: String

    Permalink

    field separator (between fields)

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. val ifs: String

    Permalink

    intra-field separator (within fields, for use in sequence data)

  18. val indices: Map[String, Int]

    Permalink

    a mapping from field name to field index (0-based)

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val missingData: (String) ⇒ Boolean

    Permalink

    a function that determines if the data in an optional field is considered missing

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def nonStrict[Repr, That](t: TraversableLike[String, Repr])(implicit cbf: CanBuildFrom[Repr, CsvLine, That]): Traversable[CsvLineImpl]

    Permalink

    A non-strict version of the GenTraversableLike method for TraversableLike values.

  23. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped