com.eharmony.aloha.dataset.csv

CsvRowCreator

final case class CsvRowCreator[-A](features: FeatureExtractorFunction[A, String], headers: Vector[String], separator: String = ",") extends CharSeqRowCreator[A] with Product with Serializable

A transformer that takes a value of a specified input type that produces string-based CSV data.

A

the input type that is transformed into CSV output.

features

a representation of the features used to generate the row ouput.

headers

note that the dimensionality of this vector is equal to the dimensionality of the output vector produced by features rather than the number of features used to produce the vector. This is because categorical variables can be expanded in different ways based on the com.eharmony.aloha.dataset.csv.encoding.Encoding used.

separator

the field separator

Linear Supertypes
Product, Equals, RowCreator[A, CharSequence], Serializable, Serializable, (A) ⇒ (MissingAndErroneousFeatureInfo, CharSequence), AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CsvRowCreator
  2. Product
  3. Equals
  4. RowCreator
  5. Serializable
  6. Serializable
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CsvRowCreator(features: FeatureExtractorFunction[A, String], headers: Vector[String], separator: String = ",")

    features

    a representation of the features used to generate the row ouput.

    headers

    note that the dimensionality of this vector is equal to the dimensionality of the output vector produced by features rather than the number of features used to produce the vector. This is because categorical variables can be expanded in different ways based on the com.eharmony.aloha.dataset.csv.encoding.Encoding used.

    separator

    the field separator

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 andThen[A](g: ((MissingAndErroneousFeatureInfo, CharSequence)) ⇒ A): (A) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(data: A): (MissingAndErroneousFeatureInfo, String)

    Definition Classes
    CsvRowCreator → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ A): (A) ⇒ (MissingAndErroneousFeatureInfo, CharSequence)

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. val features: FeatureExtractorFunction[A, String]

    a representation of the features used to generate the row ouput.

  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 headerString: String

    returns

    A string containing all the headers associated with the CSV rows created by this RowCreator.

  16. val headers: Vector[String]

    note that the dimensionality of this vector is equal to the dimensionality of the output vector produced by features rather than the number of features used to produce the vector.

    note that the dimensionality of this vector is equal to the dimensionality of the output vector produced by features rather than the number of features used to produce the vector. This is because categorical variables can be expanded in different ways based on the com.eharmony.aloha.dataset.csv.encoding.Encoding used.

  17. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  21. val separator: String

    the field separator

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

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  24. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from RowCreator[A, CharSequence]

Inherited from Serializable

Inherited from Serializable

Inherited from (A) ⇒ (MissingAndErroneousFeatureInfo, CharSequence)

Inherited from AnyRef

Inherited from Any

Ungrouped