Dataframe, Datasets, Rdd.
rddFromDataset = empDataset.rdd rddFromDataset: org.apache.spark.rdd.RDD[Employ] = MapPartitionsRDD[14] at rdd at <console>:25 It returns RDD of Employ so, in this case we should be able to do normal RDD operations on that RDD. rddFromDataset.map(employ => employ.name).foreach(println) We will get