trait AnchorExtractor[T] extends AnchorExtractorBase[T] with SparkRowExtractor
Provides feature values based on some "raw" data element
- T
raw data type
- Alphabetic
- By Inheritance
- AnchorExtractor
- SparkRowExtractor
- AnchorExtractorBase
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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.
-
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.
- abstract def getKey(datum: T): Seq[String]
-
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
-
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
-
val
_params: Option[Config]
- Definition Classes
- AnchorExtractorBase
-
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
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
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
-
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
-
def
getSelectedFeatures(datum: T, selectedFeatures: Set[String]): Map[String, FeatureValue]
get partial features instead of all feature in the anchor
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
init(params: Config): Unit
init with parameter map
init with parameter map
- Definition Classes
- AnchorExtractorBase
-
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
- AnchorExtractor → 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()