Trait/Object

com.spotify.featran

FeatureBuilder

Related Docs: object FeatureBuilder | package featran

Permalink

trait FeatureBuilder[T] extends Serializable

Type class for types to build feature into.

T

output feature type

Self Type
FeatureBuilder[T]
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FeatureBuilder
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(name: String, value: Double): Unit

    Permalink

    Add a single feature value.

    Add a single feature value. The total number of values added and skipped should equal to dimension in init.

  2. abstract def init(dimension: Int): Unit

    Permalink

    Initialize the builder for a record.

    Initialize the builder for a record. This should be called only once per input row.

    dimension

    total feature dimension

  3. abstract def result: T

    Permalink

    Gather builder result for a result.

    Gather builder result for a result. This should be called only once per input row.

  4. abstract def skip(): Unit

    Permalink

    Skip a single feature value.

    Skip a single feature value. The total number of values added and skipped should equal to dimension in init.

Concrete 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 add[M[_]](names: Iterable[String], values: M[Double])(implicit ev: (M[Double]) ⇒ Seq[Double]): Unit

    Permalink

    Add multiple feature values.

    Add multiple feature values. The total number of values added and skipped should equal to dimension in init.

  5. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. def map[U](f: (T) ⇒ U): FeatureBuilder[U]

    Permalink

    Create a FeatureBuilder for type U by converting the result type T with f.

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

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. def prepare(transformer: Transformer[_, _, _]): Unit

    Permalink

    Prepare the builder for the next transformer.

    Prepare the builder for the next transformer. This should be called only once per transformer per input row.

    transformer

    the next transformer in line

  18. def reject(transformer: Transformer[_, _, _], reason: FeatureRejection): Unit

    Permalink

    Reject an input row.

    Reject an input row.

    transformer

    transformer rejecting the input

    reason

    reason for rejection

  19. def rejections: Map[String, FeatureRejection]

    Permalink

    Gather rejections.

    Gather rejections. This should be called only once per input row.

  20. def skip(n: Int): Unit

    Permalink

    Skip multiple feature values.

    Skip multiple feature values. The total number of values added and skipped should equal to dimension in init.

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

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped