|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lens.ml.spark.SparkMLDriver
public class SparkMLDriver
The Class SparkMLDriver.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
| Constructor Summary | |
|---|---|
SparkMLDriver()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public SparkMLDriver()
| Method Detail |
|---|
public void useSparkContext(org.apache.spark.api.java.JavaSparkContext jsc)
jsc - the jscpublic boolean isAlgoSupported(String name)
MLDriver
isAlgoSupported in interface MLDrivername - the algo
public MLAlgo getAlgoInstance(String name)
throws LensException
MLDriver
getAlgoInstance in interface MLDrivername - the algo
LensException - the lens exception
public void init(LensConf conf)
throws LensException
MLDriver
init in interface MLDriverconf - the conf
LensException - the lens exception
public void start()
throws LensException
MLDriver
start in interface MLDriverLensException - the lens exception
public void stop()
throws LensException
MLDriver
stop in interface MLDriverLensException - the lens exceptionpublic List<String> getAlgoNames()
getAlgoNames in interface MLDriver
public void checkStarted()
throws LensException
LensException - the lens exceptionpublic org.apache.spark.api.java.JavaSparkContext getSparkContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||