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

CsvLines

case class CsvLines(indices: Map[String, Int], enums: Map[String, Enum] = ..., fs: String = "\t", ifs: String = ",", missingData: (String) ⇒ Boolean = ((x$1: String) => x$1.==("")), 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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

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

    first
    rest
    returns

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

    s
    returns

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

    t
    returns

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

    Generate a

    Generate a

    Repr
    That
    t
    cbf
    returns

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

    a mapping from field name to emulated Enum type.

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

    Definition Classes
    AnyRef
  14. val errorOnOptMissingEnum: Boolean

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

  15. val errorOnOptMissingField: Boolean

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

  16. def finalize(): Unit

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

    field separator (between fields)

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

    Definition Classes
    AnyRef → Any
  19. val ifs: String

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

  20. val indices: Map[String, Int]

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

  21. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

    Repr
    That
    t
    cbf
    returns

  25. final def notify(): Unit

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped