| Modifier and Type | Field and Description | 
|---|---|
| static org.apache.commons.logging.Log | LOGThe Constant LOG. | 
| Constructor and Description | 
|---|
| SparkMLDriver() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkStarted()Check started. | 
| MLAlgo | getAlgoInstance(String name)Gets the algo instance. | 
| List<String> | getAlgoNames() | 
| org.apache.spark.api.java.JavaSparkContext | getSparkContext() | 
| void | init(LensConf conf)Inits the. | 
| boolean | isAlgoSupported(String name)Checks if is algo supported. | 
| void | start()Start. | 
| void | stop()Stop. | 
| void | useSparkContext(org.apache.spark.api.java.JavaSparkContext jsc)Use spark context. | 
public void useSparkContext(org.apache.spark.api.java.JavaSparkContext jsc)
jsc - the jscpublic boolean isAlgoSupported(String name)
MLDriverisAlgoSupported in interface MLDrivername - the algopublic MLAlgo getAlgoInstance(String name) throws LensException
MLDrivergetAlgoInstance in interface MLDrivername - the algoLensException - the lens exceptionpublic void init(LensConf conf) throws LensException
MLDriverinit in interface MLDriverconf - the confLensException - the lens exceptionpublic void start()
           throws LensException
MLDriverstart in interface MLDriverLensException - the lens exceptionpublic void stop()
          throws LensException
MLDriverstop in interface MLDriverLensException - the lens exceptionpublic List<String> getAlgoNames()
getAlgoNames in interface MLDriverpublic void checkStarted()
                  throws LensException
LensException - the lens exceptionpublic org.apache.spark.api.java.JavaSparkContext getSparkContext()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.