Class DatasetHolder<T,DS extends Dataset<Object>>

Object
org.apache.spark.sql.DatasetHolder<T,DS>

public class DatasetHolder<T,DS extends Dataset<Object>> extends Object
A container for a Dataset, used for implicit conversions in Scala.

To use this, import implicit conversions in SQL:


   val spark: SparkSession = ...
   import spark.implicits._
 

Since:
1.6.0
  • Constructor Details

    • DatasetHolder

      public DatasetHolder(DS ds)
  • Method Details

    • toDF

      public DS toDF()
    • toDF

      public DS toDF(scala.collection.immutable.Seq<String> colNames)
    • toDS

      public DS toDS()