TypeTags are unfortunately not thread-safe in Scala 2.10. They were still 
somewhat experimental at the time so we decided not to use them. If you want 
though, you can probably design other APIs that pass a TypeTag around (e.g. 
make a method that takes an RDD[T] but also requires an implicit TypeTag[T]).

Matei

On Aug 22, 2014, at 9:15 AM, Mohit Jaggi <[email protected]> wrote:

> Folks,
> I am wondering why Spark uses ClassTag in RDD[T: ClassTag] instead of the 
> more functional TypeTag option.
> I have some code that needs TypeTag functionality and I don't know if a 
> typeTag can be converted to a classTag.
> 
> Mohit.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to