Re: MappedStream vs Transform API

2015-03-17 Thread madhu phatak
>>>> I think these two ways are both OK for you to write streaming job, >>>>> `transform` is a more general way for you to transform from one DStream to >>>>> another if there’s no related DStream API (but have related RDD API). But >>>>> using map

Re: MappedStream vs Transform API

2015-03-17 Thread madhu phatak
gt; I think these two ways are both OK for you to write streaming job, >>>>> `transform` is a more general way for you to transform from one DStream to >>>>> another if there’s no related DStream API (but have related RDD API). But >>>>> using map maybe m

Re: MappedStream vs Transform API

2015-03-17 Thread Tathagata Das
t;> I think these two ways are both OK for you to write streaming job, >>>> `transform` is a more general way for you to transform from one DStream to >>>> another if there’s no related DStream API (but have related RDD API). But >>>> using map maybe more stra

Re: MappedStream vs Transform API

2015-03-17 Thread madhu phatak
> >>> >>> Thanks >>> >>> Jerry >>> >>> >>> >>> *From:* madhu phatak [mailto:phatak@gmail.com] >>> *Sent:* Monday, March 16, 2015 4:32 PM >>> *To:* user@spark.apache.org >>> *Subject:* MappedStre

Re: MappedStream vs Transform API

2015-03-16 Thread Tathagata Das
madhu phatak [mailto:phatak....@gmail.com] >> *Sent:* Monday, March 16, 2015 4:32 PM >> *To:* user@spark.apache.org >> *Subject:* MappedStream vs Transform API >> >> >> >> Hi, >> >> Current implementation of map function in spark streaming looks

Re: MappedStream vs Transform API

2015-03-16 Thread madhu phatak
and easy to understand. > > > > Thanks > > Jerry > > > > *From:* madhu phatak [mailto:phatak@gmail.com] > *Sent:* Monday, March 16, 2015 4:32 PM > *To:* user@spark.apache.org > *Subject:* MappedStream vs Transform API > > > > Hi, > >

RE: MappedStream vs Transform API

2015-03-16 Thread Shao, Saisai
From: madhu phatak [mailto:phatak@gmail.com] Sent: Monday, March 16, 2015 4:32 PM To: user@spark.apache.org Subject: MappedStream vs Transform API Hi, Current implementation of map function in spark streaming looks as below. def map[U: ClassTag](mapFunc: T => U): DStream[U] = {

MappedStream vs Transform API

2015-03-16 Thread madhu phatak
Hi, Current implementation of map function in spark streaming looks as below. def map[U: ClassTag](mapFunc: T => U): DStream[U] = { new MappedDStream(this, context.sparkContext.clean(mapFunc)) } It creates an instance of MappedDStream which is a subclass of DStream. The same function can