I know when a class is parameterized, it could be declared as
class A[T]
I see declaration of RDD of Spark begins with:
abstract class RDD[T: ClassTag]
I don't know what does the : ClassTag
mean.
This is a syntactic variant for writing
abstract class RDD[T](implicit context: ClassTag[T])
The comments to this question already link to two related questions that explain what this so-called 'context bound' is about.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With