spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Marscher <rmarsc...@localytics.com>
Subject Re: How to create empty RDD
Date Mon, 06 Jul 2015 21:14:48 GMT
This should work

val output: RDD[(DetailInputRecord, VISummary)] =
sc.paralellize(Seq.empty[(DetailInputRecord, VISummary)])

On Mon, Jul 6, 2015 at 5:11 PM, ÐΞ€ρ@Ҝ (๏̯͡๏) <deepujain@gmail.com> wrote:

> I need to return an empty RDD of type
>
> val output: RDD[(DetailInputRecord, VISummary)]
>
>
>
> This does not work
>
> val output: RDD[(DetailInputRecord, VISummary)] = new RDD()
>
> as RDD is abstract class.
>
> How do i create empty RDD ?
> --
> Deepak
>
>

Mime
View raw message