Class GeneralMLWriter

Object
org.apache.spark.ml.util.MLWriter
org.apache.spark.ml.util.GeneralMLWriter
All Implemented Interfaces:
org.apache.spark.internal.Logging, org.apache.spark.ml.util.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.LogStringContext, 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)
     

    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

    org$apache$spark$ml$util$BaseReadWrite$$optionSparkSession, org$apache$spark$ml$util$BaseReadWrite$$optionSparkSession_$eq, sc, sparkSession, sqlContext

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

    initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
  • 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)
      Specified by:
      session in interface org.apache.spark.ml.util.BaseReadWrite
      Overrides:
      session in class MLWriter