| Constructor and Description |
|---|
MLWriter() |
| Modifier and Type | Method and Description |
|---|---|
MLWriter |
context(SQLContext sqlContext)
Sets the SQL context to use for saving/loading.
|
scala.Option<SQLContext> |
optionSQLContext() |
MLWriter |
overwrite()
Overwrites if the output path already exists.
|
void |
save(java.lang.String path)
Saves the ML instances to the input path.
|
protected abstract void |
saveImpl(java.lang.String path)
save() handles overwriting and then calls this method. |
SparkContext |
sc()
Returns the
SparkContext underlying sqlContext |
protected boolean |
shouldOverwrite() |
SQLContext |
sqlContext()
Returns the user-specified SQL context or the default.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningprotected boolean shouldOverwrite()
public void save(java.lang.String path)
path - (undocumented)protected abstract void saveImpl(java.lang.String path)
save() handles overwriting and then calls this method. Subclasses should override this
method to implement the actual saving of the instance.path - (undocumented)public MLWriter overwrite()
public MLWriter context(SQLContext sqlContext)
sqlContext - (undocumented)public scala.Option<SQLContext> optionSQLContext()
public SQLContext sqlContext()
public SparkContext sc()
SparkContext underlying sqlContext