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()
- Alphabetic
- By Inheritance
- 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.
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.
-
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()