GeneralMLWriter (Spark 3.5.5 JavaDoc) (original) (raw)
Object
- org.apache.spark.ml.util.MLWriter
- org.apache.spark.ml.util.GeneralMLWriter
All Implemented Interfaces:
org.apache.spark.internal.Logging, BaseReadWrite
public class GeneralMLWriter
extends MLWriter
implements org.apache.spark.internal.Logging
A ML Writer which delegates based on the requested format.
Nested Class Summary
* ### Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging `org.apache.spark.internal.Logging.SparkShellLoggingFilter`
Constructor Summary
Constructors
Constructor and Description GeneralMLWriter(PipelineStage stage) Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description GeneralMLWriter format(String source) Specifies the format of ML export (e.g. GeneralMLWriter session(SparkSession sparkSession) Sets the Spark Session to use for saving/loading. * ### Methods inherited from class org.apache.spark.ml.util.[MLWriter](../../../../../org/apache/spark/ml/util/MLWriter.html "class in org.apache.spark.ml.util") `[option](../../../../../org/apache/spark/ml/util/MLWriter.html#option-java.lang.String-java.lang.String-), [overwrite](../../../../../org/apache/spark/ml/util/MLWriter.html#overwrite--), [save](../../../../../org/apache/spark/ml/util/MLWriter.html#save-java.lang.String-)` * ### Methods inherited from class Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` * ### Methods inherited from interface org.apache.spark.internal.Logging `$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_, uninitialize` * ### Methods inherited from interface org.apache.spark.ml.util.[BaseReadWrite](../../../../../org/apache/spark/ml/util/BaseReadWrite.html "interface in org.apache.spark.ml.util") `[sc](../../../../../org/apache/spark/ml/util/BaseReadWrite.html#sc--), [sparkSession](../../../../../org/apache/spark/ml/util/BaseReadWrite.html#sparkSession--), [sqlContext](../../../../../org/apache/spark/ml/util/BaseReadWrite.html#sqlContext--)`
Constructor Detail
* #### GeneralMLWriter public GeneralMLWriter([PipelineStage](../../../../../org/apache/spark/ml/PipelineStage.html "class in org.apache.spark.ml") stage)
Method Detail
* #### format public [GeneralMLWriter](../../../../../org/apache/spark/ml/util/GeneralMLWriter.html "class in org.apache.spark.ml.util") format(String source) Specifies the format of ML export (e.g. "pmml", "internal", or the fully qualified class name for export). Parameters: `source` \- (undocumented) Returns: (undocumented) * #### session public [GeneralMLWriter](../../../../../org/apache/spark/ml/util/GeneralMLWriter.html "class in org.apache.spark.ml.util") session([SparkSession](../../../../../org/apache/spark/sql/SparkSession.html "class in org.apache.spark.sql") sparkSession) Sets the Spark Session to use for saving/loading. Specified by: `[session](../../../../../org/apache/spark/ml/util/BaseReadWrite.html#session-org.apache.spark.sql.SparkSession-)` in interface `[BaseReadWrite](../../../../../org/apache/spark/ml/util/BaseReadWrite.html "interface in org.apache.spark.ml.util")` Overrides: `[session](../../../../../org/apache/spark/ml/util/MLWriter.html#session-org.apache.spark.sql.SparkSession-)` in class `[MLWriter](../../../../../org/apache/spark/ml/util/MLWriter.html "class in org.apache.spark.ml.util")` Parameters: `sparkSession` \- (undocumented) Returns: (undocumented)