public abstract class MLReader<T>
extends java.lang.Object
Constructor and Description |
---|
MLReader() |
Modifier and Type | Method and Description |
---|---|
MLReader<T> |
context(SQLContext sqlContext)
Sets the SQL context to use for saving/loading.
|
abstract T |
load(java.lang.String path)
Loads the ML component from the input path.
|
scala.Option<SQLContext> |
optionSQLContext() |
SparkContext |
sc()
Returns the
SparkContext underlying sqlContext |
SQLContext |
sqlContext()
Returns the user-specified SQL context or the default.
|
public abstract T load(java.lang.String path)
path
- (undocumented)public MLReader<T> context(SQLContext sqlContext)
sqlContext
- (undocumented)public scala.Option<SQLContext> optionSQLContext()
public SQLContext sqlContext()
public SparkContext sc()
SparkContext
underlying sqlContext