crunch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Wills <jwi...@cloudera.com>
Subject Re: Convert PCollection<Pair<..>> to PTable<..>
Date Mon, 04 May 2015 23:11:52 GMT
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