public abstract class MLWriter extends Object implements BaseReadWrite, org.apache.spark.internal.Logging
| Constructor and Description | 
|---|
| MLWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| MLWriter | option(String key,
      String value)Adds an option to the underlying MLWriter. | 
| MLWriter | overwrite()Overwrites if the output path already exists. | 
| void | save(String path)Saves the ML instances to the input path. | 
| MLWriter | session(SparkSession sparkSession)Sets the Spark Session to use for saving/loading. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsc, sparkSession, sqlContext$init$, initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, initLock, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log__$eq, org$apache$spark$internal$Logging$$log_, uninitializepublic MLWriter option(String key, String value)
key - (undocumented)value - (undocumented)public MLWriter overwrite()
public void save(String path)
          throws java.io.IOException
path - (undocumented)java.io.IOExceptionpublic MLWriter session(SparkSession sparkSession)
BaseReadWritesession in interface BaseReadWritesparkSession - (undocumented)