Class SmileDataFrames
java.lang.Object
smile.spark.SmileDataFrames
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.sql.RowConverts a SMILETupleto an Apache SparkRow.static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> Converts a local SMILE DataFrame into a distributed Apache Spark Dataset of Rows.
-
Method Details
-
toRow
-
toSpark
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> toSpark(org.apache.spark.sql.SparkSession spark, DataFrame df) Converts a local SMILE DataFrame into a distributed Apache Spark Dataset of Rows.- Parameters:
spark- the active SparkSession.df- the SMILE DataFrame.- Returns:
- the distributed Spark DataFrame.
-