crunch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Baugher <bjb...@gmail.com>
Subject Re: Convert PCollection<Pair<..>> to PTable<..>
Date Tue, 05 May 2015 14:05:23 GMT
Ah, thank you!

On Mon, May 4, 2015 at 6:13 PM Josh Wills <jwills@cloudera.com> wrote:

> org.apache.crunch.lib.PTables.asPTable.
>
> On Tue, May 5, 2015 at 12:59 AM, Bryan Baugher <bjbq4d@gmail.com> wrote:
>
>> I was using the Shard.shard(..)[1] API to shard a PTable which gave me a
>> PCollection<Pair<..>>. I want to get the PTable back. Whats the best
way to
>> do this? Should I write a DoFn myself or is there something already there?
>>
>> Bryan
>>
>> [1] -
>> http://crunch.apache.org/apidocs/0.11.0/org/apache/crunch/lib/Shard.html#shard(org.apache.crunch.PCollection,
>> int)
>>
>
>
>
> --
> Director of Data Science
> Cloudera <http://www.cloudera.com>
> Twitter: @josh_wills <http://twitter.com/josh_wills>
>

Mime
View raw message