|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 MLDriver
name
- the algo
public MLAlgo getAlgoInstance(String name) throws LensException
MLDriver
getAlgoInstance
in interface MLDriver
name
- the algo
LensException
- the lens exceptionpublic void init(LensConf conf) throws LensException
MLDriver
init
in interface MLDriver
conf
- the conf
LensException
- the lens exceptionpublic void start() throws LensException
MLDriver
start
in interface MLDriver
LensException
- the lens exceptionpublic void stop() throws LensException
MLDriver
stop
in interface MLDriver
LensException
- 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 |