org.apache.lens.ml.spark
Class FeatureFunction
java.lang.Object
org.apache.lens.ml.spark.FeatureFunction
- All Implemented Interfaces:
- Serializable, org.apache.spark.api.java.function.Function<scala.Tuple2<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord>,org.apache.spark.mllib.regression.LabeledPoint>
- Direct Known Subclasses:
- ColumnFeatureFunction
public abstract class FeatureFunction
- extends Object
- implements org.apache.spark.api.java.function.Function<scala.Tuple2<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord>,org.apache.spark.mllib.regression.LabeledPoint>
Function to map an HCatRecord to a feature vector usable by MLLib.
- See Also:
- Serialized Form
Method Summary |
abstract org.apache.spark.mllib.regression.LabeledPoint |
call(scala.Tuple2<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord> tuple)
|
FeatureFunction
public FeatureFunction()
call
public abstract org.apache.spark.mllib.regression.LabeledPoint call(scala.Tuple2<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord> tuple)
throws Exception
- Specified by:
call
in interface org.apache.spark.api.java.function.Function<scala.Tuple2<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord>,org.apache.spark.mllib.regression.LabeledPoint>
- Throws:
Exception
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.