Package org.apache.spark.ml.util
Interface BaseReadWrite
- All Known Implementing Classes:
ChiSqSelectorModel.ChiSqSelectorModelWriter
,CrossValidatorModel.CrossValidatorModelWriter
,GeneralMLWriter
,MLReader
,MLWriter
,TrainValidationSplitModel.TrainValidationSplitModelWriter
public interface BaseReadWrite
Trait for
MLWriter
and MLReader
.-
Method Summary
Modifier and TypeMethodDescriptionsc()
Returns the underlying `SparkContext`.session
(SparkSession sparkSession) Sets the Spark Session to use for saving/loading.Returns the user-specified Spark Session or the default.Returns the user-specified SQL context or the default.
-
Method Details
-
sc
SparkContext sc()Returns the underlying `SparkContext`. -
session
Sets the Spark Session to use for saving/loading.- Parameters:
sparkSession
- (undocumented)- Returns:
- (undocumented)
-
sparkSession
SparkSession sparkSession()Returns the user-specified Spark Session or the default.- Returns:
- (undocumented)
-
sqlContext
SQLContext sqlContext()Returns the user-specified SQL context or the default.- Returns:
- (undocumented)
-