Class GeneralMLWriter

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
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    format(String source)
    Specifies the format of ML export (e.g.
    session(SparkSession sparkSession)
    Sets the Spark Session to use for saving/loading.

    Methods inherited from class org.apache.spark.ml.util.MLWriter

    option, overwrite, save

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.spark.ml.util.BaseReadWrite

    sc, sparkSession, sqlContext

    Methods inherited from interface org.apache.spark.internal.Logging

    initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq
  • Constructor Details

  • Method Details

    • format

      public GeneralMLWriter 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 session(SparkSession sparkSession)
      Description copied from interface: BaseReadWrite
      Sets the Spark Session to use for saving/loading.
      Specified by:
      session in interface BaseReadWrite
      Overrides:
      session in class MLWriter
      Parameters:
      sparkSession - (undocumented)
      Returns:
      (undocumented)