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.
- Alphabetic
- By Inheritance
- ParameterizedFeatureExtractor
- FeatureExtractor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
batchExtract(featuresToExtract: Set[String], sourceData: SOURCE_DATA): Map[String, FeatureValue]
Extract the set of features specified by
featuresToExtractfrom thesourceData.Extract the set of features specified by
featuresToExtractfrom thesourceData.- 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
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extract(featureName: String, sourceData: SOURCE_DATA): FeatureValue
Extract a single feature specified by
featureNamefromsourceData.Extract a single feature specified by
featureNamefromsourceData. 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
FeatureValueassociated with the requested feature name. When the requested feature cannot be extracted,nullmay be returned.
- Definition Classes
- FeatureExtractor
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()