T
- ML instance typepublic abstract class MLReader<T> extends Object implements BaseReadWrite
Constructor and Description |
---|
MLReader() |
Modifier and Type | Method and Description |
---|---|
MLReader<T> |
context(SQLContext sqlContext)
Sets the Spark SQLContext to use for saving/loading.
|
abstract T |
load(String path)
Loads the ML component from the input path.
|
MLReader<T> |
session(SparkSession sparkSession)
Sets the Spark Session to use for saving/loading.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
optionSparkSession, sc, sparkSession, sqlContext
public MLReader<T> context(SQLContext sqlContext)
BaseReadWrite
context
in interface BaseReadWrite
sqlContext
- (undocumented)public abstract T load(String path)
path
- (undocumented)public MLReader<T> session(SparkSession sparkSession)
BaseReadWrite
session
in interface BaseReadWrite
sparkSession
- (undocumented)