Packages

t

com.linkedin.feathr.common

AnchorExtractor

trait AnchorExtractor[T] extends AnchorExtractorBase[T] with SparkRowExtractor

Provides feature values based on some "raw" data element

T

raw data type

Linear Supertypes
SparkRowExtractor, AnchorExtractorBase[T], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnchorExtractor
  2. SparkRowExtractor
  3. AnchorExtractorBase
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getFeatures(datum: T): Map[String, FeatureValue]

    Provides the feature values for a given input data record.

    Provides the feature values for a given input data record. Note: Might provide more features than advertised in getProvidedFeatures(); caller should filter out unwanted features if necessary.

  2. abstract def getInputType: Class[_]

    Ideally we could use reflection to inspect the type argument T of the implementing class.

    Ideally we could use reflection to inspect the type argument T of the implementing class. But I don't know how to do this right now using the reflection API, and the cost of making people implement this is low.

  3. abstract def getKey(datum: T): Seq[String]
  4. abstract def getProvidedFeatureNames: Seq[String]

    The names of the features provided by this anchor.

    The names of the features provided by this anchor.

    Definition Classes
    AnchorExtractorBase

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. val _params: Option[Config]
    Definition Classes
    AnchorExtractorBase
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  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 getFeaturesFromRow(datum: Any): Map[String, FeatureValue]

    Get the feature value from the row

    Get the feature value from the row

    datum

    input row

    returns

    A map of feature name to feature value

    Definition Classes
    AnchorExtractor → SparkRowExtractor
  12. def getKeyFromRow(datum: Any): Seq[String]

    Get key from input row

    Get key from input row

    datum

    input row

    returns

    list of feature keys

    Definition Classes
    AnchorExtractor → SparkRowExtractor
  13. def getSelectedFeatures(datum: T, selectedFeatures: Set[String]): Map[String, FeatureValue]

    get partial features instead of all feature in the anchor

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def init(params: Config): Unit

    init with parameter map

    init with parameter map

    Definition Classes
    AnchorExtractorBase
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnchorExtractor → AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from SparkRowExtractor

Inherited from AnchorExtractorBase[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped