This project has retired. For details please refer to its Attic page.
FeatureFunction (Lens 2.0.1-beta-incubating API)

org.apache.lens.ml.spark
Class FeatureFunction

java.lang.Object
  extended by 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

Constructor Summary
FeatureFunction()
           
 
Method Summary
abstract  org.apache.spark.mllib.regression.LabeledPoint call(scala.Tuple2<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord> tuple)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureFunction

public FeatureFunction()
Method Detail

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.