Packages

t

com.linkedin.feathr.common

ParameterizedFeatureExtractor

trait ParameterizedFeatureExtractor[SOURCE_DATA, PARAM] extends FeatureExtractor[SOURCE_DATA]

This extension of the FeatureExtractor rely on extra parameters to extract features. The expectation is that the Feathr engine will call init when constructing an instance of this Extractor and implementation of this interface is responsible for maintaining any state for the parameters as needed.

Linear Supertypes
FeatureExtractor[SOURCE_DATA], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParameterizedFeatureExtractor
  2. FeatureExtractor
  3. AnyRef
  4. 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.

    Definition Classes
    FeatureExtractor
  2. abstract def init(params: Map[String, PARAM]): Unit

    Initialize the extractor params.

    Initialize the extractor params.

    params

    It's a map from feature name to PARAM.

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.

    Definition Classes
    FeatureExtractor
  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 FeatureExtractor[SOURCE_DATA]

Inherited from AnyRef

Inherited from Any

Ungrouped