public abstract class MLReader<T>
extends Object
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.
|
scala.Option<SparkSession> |
optionSparkSession() |
SparkContext |
sc()
Returns the underlying `SparkContext`.
|
MLReader<T> |
session(SparkSession sparkSession)
Sets the Spark Session to use for saving/loading.
|
SparkSession |
sparkSession()
Returns the user-specified Spark Session or the default.
|
SQLContext |
sqlContext()
Returns the user-specified SQL context or the default.
|
public abstract T load(String path)
path
- (undocumented)public MLReader<T> session(SparkSession sparkSession)
sparkSession
- (undocumented)public MLReader<T> context(SQLContext sqlContext)
sqlContext
- (undocumented)public scala.Option<SparkSession> optionSparkSession()
public SparkSession sparkSession()
public SQLContext sqlContext()
public SparkContext sc()