BaseReadWrite (Spark 3.5.5 JavaDoc) (original) (raw)
- All Known Implementing Classes:
ChiSqSelectorModel.ChiSqSelectorModelWriter, CrossValidatorModel.CrossValidatorModelWriter, GeneralMLWriter, MLReader, MLWriter, TrainValidationSplitModel.TrainValidationSplitModelWriter
public interface BaseReadWrite
Trait for MLWriter
and MLReader
.
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type Method and Description SparkContext sc() Returns the underlying `SparkContext`. BaseReadWrite 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. Method Detail
* #### sc [SparkContext](../../../../../org/apache/spark/SparkContext.html "class in org.apache.spark") sc() Returns the underlying \`SparkContext\`. * #### session [BaseReadWrite](../../../../../org/apache/spark/ml/util/BaseReadWrite.html "interface 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. Parameters: `sparkSession` \- (undocumented) Returns: (undocumented) * #### sparkSession [SparkSession](../../../../../org/apache/spark/sql/SparkSession.html "class in org.apache.spark.sql") sparkSession() Returns the user-specified Spark Session or the default. Returns: (undocumented) * #### sqlContext [SQLContext](../../../../../org/apache/spark/sql/SQLContext.html "class in org.apache.spark.sql") sqlContext() Returns the user-specified SQL context or the default. Returns: (undocumented)