Packages

t

com.linkedin.feathr.common

FeatureExtractor

trait FeatureExtractor[SOURCE_DATA] extends AnyRef

A feature extractor that extracts FeatureValue from source data. The class must have 0-argument constructor so Feathr engine can instantiate the class with 0-argument constructor. We expect this to replace Extractor eventually.

WARNING: This interface is in beta testing and is not approved for public use yet.

Annotations
@Experimental()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FeatureExtractor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def batchExtract(featuresToExtract: Set[String], sourceData: SOURCE_DATA): Map[String, FeatureValue]

    Extract the set of features specified by featuresToExtract from the sourceData.

    Extract the set of features specified by featuresToExtract from the sourceData.

    featuresToExtract

    A set of features that this extractor will extract.

    sourceData

    The source data from your Feathr Source.

    returns

    A map of feature name to FeatureValue. For requested features that cannot be extracted, the expectation is that the result map will not contain entries of those features.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def extract(featureName: String, sourceData: SOURCE_DATA): FeatureValue

    Extract a single feature specified by featureName from sourceData.

    Extract a single feature specified by featureName from sourceData. If you only extract a single feature a time and it can be more performant than #batchExtract, you should implement this.

    featureName

    Feature name in the Feathr config.

    sourceData

    The source data from your Feathr Source.

    returns

    The FeatureValue associated with the requested feature name. When the requested feature cannot be extracted, null may be returned.

  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped