public abstract class MLWriter extends Object implements BaseReadWrite, 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, sqlContextinitializeForcefully, initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic 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)