Constructor and Description |
---|
GeneralMLWriter(PipelineStage stage) |
Modifier and Type | Method and Description |
---|---|
GeneralMLWriter |
context(SQLContext sqlContext)
Sets the Spark SQLContext to use for saving/loading.
|
GeneralMLWriter |
format(String source)
Specifies the format of ML export (e.g.
|
scala.Option<SparkSession> |
optionSparkSession() |
SparkContext |
sc()
Returns the underlying `SparkContext`.
|
GeneralMLWriter |
session(SparkSession sparkSession)
Sets the Spark Session to use for saving/loading.
|
SparkSession |
sparkSession()
Returns the user-specified Spark Session or the default.
|
SQLContext |
sqlContext()
Returns the user-specified SQL context or the default.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public GeneralMLWriter(PipelineStage stage)
public GeneralMLWriter context(SQLContext sqlContext)
public GeneralMLWriter format(String source)
source
- (undocumented)public GeneralMLWriter session(SparkSession sparkSession)
public scala.Option<SparkSession> optionSparkSession()
public SparkContext sc()
public SparkSession sparkSession()
public SQLContext sqlContext()