Re: Create a new object by given classtag

2014-08-04 Thread Matei Zaharia
gt; > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Create-a-new-object-by-given-classtag-tp11368.html > > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > ---

Re: Create a new object by given classtag

2014-08-04 Thread Marcelo Vanzin
obj > > } > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Create-a-new-object-by-given-classtag-tp11368.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > >

Re: Create a new object by given classtag

2014-08-04 Thread Peng Wei
> > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Create-a-new-object-by-given-classtag-tp11368.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > ---

Re: Create a new object by given classtag

2014-08-04 Thread Matei Zaharia
-object-by-given-classtag-tp11368.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h

Create a new object by given classtag

2014-08-04 Thread Parthus
finish it? Thanks very much def read[T: ClassTag](path: String): T = { val obj = new T ??? // This does not work obj.load(path) obj } -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Create-a-new-object-by-given-classtag-tp11368.html Sent from