org.apache.lens.ml.spark
Class DoubleValueMapper

java.lang.Object
  extended by org.apache.lens.ml.spark.FeatureValueMapper
      extended by org.apache.lens.ml.spark.DoubleValueMapper
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.Function<Object,Double>

public class DoubleValueMapper
extends FeatureValueMapper

Directly return input when it is known to be double.

See Also:
Serialized Form

Constructor Summary
DoubleValueMapper()
           
 
Method Summary
 Double call(Object input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleValueMapper

public DoubleValueMapper()
Method Detail

call

public final Double call(Object input)
Specified by:
call in interface org.apache.spark.api.java.function.Function<Object,Double>
Specified by:
call in class FeatureValueMapper


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.