So, I guess zipWithUniqueId will be similar.

Is there a way to get unique index?


On Wed, Aug 27, 2014 at 2:39 PM, Xiangrui Meng <men...@gmail.com> wrote:

> No. The indices start at 0 for every RDD. -Xiangrui
>
> On Wed, Aug 27, 2014 at 2:37 PM, Soumitra Kumar
> <kumar.soumi...@gmail.com> wrote:
> > Hello,
> >
> > If I do:
> >
> > DStream transform {
> >     rdd.zipWithIndex.map {
> >
> >         Is the index guaranteed to be unique across all RDDs here?
> >
> > }
> > }
> >
> > Thanks,
> > -Soumitra.
>

Reply via email to