Class

com.salesforce.op.dsl.RichFeature

RichFeature

Related Doc: package RichFeature

Permalink

implicit class RichFeature[A <: FeatureType] extends AnyRef

Enrichment functions for Feature[A]

A

input type

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichFeature
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichFeature(feature: FeatureLike[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A], ftt: scala.reflect.api.JavaUniverse.TypeTag[A.Value])

    Permalink

    feature

    FeatureLike

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 alias(name: String): FeatureLike[A]

    Permalink

    Create an alias of this feature with the desired name (note will not work on raw features)

    Create an alias of this feature with the desired name (note will not work on raw features)

    name

    desired feature name

    returns

    alias of the feature

  5. def alias(implicit name: Name): FeatureLike[A]

    Permalink

    Create an alias of this feature by capturing the val name (note will not work on raw features)

    Create an alias of this feature by capturing the val name (note will not work on raw features)

    returns

    alias of the feature

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[B <: FeatureType](default: B)(pf: PartialFunction[A, B])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], ttb: scala.reflect.api.JavaUniverse.TypeTag[collect.B.Value]): FeatureLike[B]

    Permalink

    Filter & transform feature[A] => feature[B] using the partial function A => B.

    Filter & transform feature[A] => feature[B] using the partial function A => B. Filtered out values are replaced with a default.

    default

    default value if partial function is not defined

    pf

    partial function A => B

    returns

    feature of type B

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def exists(p: (A) ⇒ Boolean): FeatureLike[Binary]

    Permalink

    Tests whether a predicate holds for feature[A]

    Tests whether a predicate holds for feature[A]

    p

    predicate to apply on feature[A]

    returns

    feature[Binary]

  12. val feature: FeatureLike[A]

    Permalink

    FeatureLike

  13. def filter(p: (A) ⇒ Boolean, default: A): FeatureLike[A]

    Permalink

    Filter feature[A] using the predicate.

    Filter feature[A] using the predicate. Filtered out values are replaced with a default.

    p

    predicate A => Boolean

    default

    default value if predicate returns false

    returns

    feature of type A

  14. def filterNot(p: (A) ⇒ Boolean, default: A): FeatureLike[A]

    Permalink

    Filter feature[A] using the NOT predicate.

    Filter feature[A] using the NOT predicate. Filtered out values are replaced with a default.

    p

    predicate A => Boolean

    default

    default value if predicate returns false

    returns

    feature of type A

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. implicit val ftt: scala.reflect.api.JavaUniverse.TypeTag[A.Value]

    Permalink
  17. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  20. def map[B <: FeatureType, C <: FeatureType, D <: FeatureType, E <: FeatureType](f1: FeatureLike[B], f2: FeatureLike[C], f3: FeatureLike[D], f: (A, B, C, D) ⇒ E)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], arg1: scala.reflect.api.JavaUniverse.TypeTag[C], arg2: scala.reflect.api.JavaUniverse.TypeTag[D], arg3: scala.reflect.api.JavaUniverse.TypeTag[E], ttb: scala.reflect.api.JavaUniverse.TypeTag[map.B.Value], ttc: scala.reflect.api.JavaUniverse.TypeTag[map.C.Value], ttd: scala.reflect.api.JavaUniverse.TypeTag[map.D.Value], tte: scala.reflect.api.JavaUniverse.TypeTag[map.E.Value]): FeatureLike[E]

    Permalink

    Quaternary transform (feature[A], feature[B], feature[C], feature[D]) => feature[E]

    Quaternary transform (feature[A], feature[B], feature[C], feature[D]) => feature[E]

    f

    map (A, B, C, D) => E

    returns

    feature of type E

  21. def map[B <: FeatureType, C <: FeatureType, D <: FeatureType](f1: FeatureLike[B], f2: FeatureLike[C], f: (A, B, C) ⇒ D)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], arg1: scala.reflect.api.JavaUniverse.TypeTag[C], arg2: scala.reflect.api.JavaUniverse.TypeTag[D], ttb: scala.reflect.api.JavaUniverse.TypeTag[map.B.Value], ttc: scala.reflect.api.JavaUniverse.TypeTag[map.C.Value], ttd: scala.reflect.api.JavaUniverse.TypeTag[map.D.Value]): FeatureLike[D]

    Permalink

    Ternary transform (feature[A], feature[B], feature[C]) => feature[D]

    Ternary transform (feature[A], feature[B], feature[C]) => feature[D]

    f

    map (A, B, C) => D

    returns

    feature of type D

  22. def map[B <: FeatureType, C <: FeatureType](f1: FeatureLike[B], f: (A, B) ⇒ C)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], arg1: scala.reflect.api.JavaUniverse.TypeTag[C], ttb: scala.reflect.api.JavaUniverse.TypeTag[map.B.Value], ttc: scala.reflect.api.JavaUniverse.TypeTag[map.C.Value]): FeatureLike[C]

    Permalink

    Binary transform (feature[A], feature[B]) => feature[C]

    Binary transform (feature[A], feature[B]) => feature[C]

    f

    map (A, B) => C

    returns

    feature of type C

  23. def map[B <: FeatureType](f: (A) ⇒ B, operationName: String = "map")(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], ttb: scala.reflect.api.JavaUniverse.TypeTag[map.B.Value]): FeatureLike[B]

    Permalink

    Unary transform feature[A] => feature[B]

    Unary transform feature[A] => feature[B]

    f

    map A => B

    returns

    feature of type B

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def occurs(matchFn: (A) ⇒ Boolean): FeatureLike[RealNN]

    Permalink

    Apply ToOccur transformer shortcut function This version allows a user to specify a non default matchFn

    Apply ToOccur transformer shortcut function This version allows a user to specify a non default matchFn

    returns

    transformed feature of type Numeric (doolean)

  28. def occurs(): FeatureLike[RealNN]

    Permalink

    Apply ToOccur transformer shortcut function

    Apply ToOccur transformer shortcut function

    returns

    transformed feature of type Numeric (doolean)

  29. def replaceWith(oldVal: A, newVal: A): FeatureLike[A]

    Permalink

    Replace a matching value with a new one

    Replace a matching value with a new one

    oldVal

    of type A

    newVal

    of type A

    returns

    feature of type A

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped