Class SmileDataFrames

java.lang.Object
smile.spark.SmileDataFrames

public final class SmileDataFrames extends Object
Converts a SMILE DataFrame into an Apache Spark SQL Dataset<Row>.
  • Method Details

    • toRow

      public static org.apache.spark.sql.Row toRow(Tuple tuple)
      Converts a SMILE Tuple to an Apache Spark Row.
      Parameters:
      tuple - the SMILE tuple.
      Returns:
      the Spark row.
    • 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.