Prove that a runtimeClass satisfies a type Bound in Scala
问题 I have a method that writes one of my classes Foo , which is defined as Thrift, in Parquet form. import Foo import org.apache.spark.rdd.RDD import org.apache.thrift.TBase import org.apache.hadoop.mapreduce.Job import org.apache.parquet.hadoop.ParquetOutputFormat import org.apache.parquet.hadoop.thrift.ParquetThriftOutputFormat def writeThriftParquet(rdd: RDD[Foo], outputPath: String): Unit = { val job = Job.getInstance() ParquetThriftOutputFormat.setThriftClass(job, classOf[Foo])