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 SummaryModifier 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- 
scSparkContext sc()Returns the underlying `SparkContext`.
- 
sessionSets the Spark Session to use for saving/loading.- Parameters:
- sparkSession- (undocumented)
- Returns:
- (undocumented)
 
- 
sparkSessionSparkSession sparkSession()Returns the user-specified Spark Session or the default.- Returns:
- (undocumented)
 
- 
sqlContextSQLContext sqlContext()Returns the user-specified SQL context or the default.- Returns:
- (undocumented)
 
 
-